From 93d465f2e38dc192ad356d143dd8fe426dc336c3 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sun, 19 Nov 2017 23:00:48 -0600 Subject: TINSEL: Increase maximum number of objects This needs to be at least 374 to avoid crashes in the in-game save/load dialogues with save games using the maximum 40 letters per save game, so just round up to the next power of two (which increases memory usage by a whopping ~20KiB) to give more than enough space for long save game names. Fixes Trac#6748. --- engines/tinsel/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/tinsel/object.h b/engines/tinsel/object.h index 0b6efc3356..097e1872d1 100644 --- a/engines/tinsel/object.h +++ b/engines/tinsel/object.h @@ -34,7 +34,7 @@ struct PALQ; enum { /** the maximum number of objects */ - NUM_OBJECTS = 256, + NUM_OBJECTS = 512, // object flags DMA_WNZ = 0x0001, ///< write non-zero data -- cgit v1.2.3