aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/cine/object.h2
-rw-r--r--engines/cine/various.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/cine/object.h b/engines/cine/object.h
index 103b2f50ba..7ad65eb75f 100644
--- a/engines/cine/object.h
+++ b/engines/cine/object.h
@@ -50,7 +50,7 @@ struct overlay {
};
#define NUM_MAX_OBJECT 255
-#define NUM_MAX_VAR 256
+#define NUM_MAX_VAR 255
extern objectStruct objectTable[NUM_MAX_OBJECT];
diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp
index 383cda1875..4ac4c4a590 100644
--- a/engines/cine/various.cpp
+++ b/engines/cine/various.cpp
@@ -535,7 +535,7 @@ bool CineEngine::loadPlainSaveFW(Common::SeekableReadStream &in, CineSaveGameFor
renderer->restorePalette(in);
// At 0x2083 (i.e. 0x2043 + 16 * 2 * 2):
- globalVars.load(in, NUM_MAX_VAR - 1);
+ globalVars.load(in, NUM_MAX_VAR);
// At 0x2281 (i.e. 0x2083 + 255 * 2):
for (i = 0; i < 16; i++) {
@@ -733,7 +733,7 @@ void makeSave(char *saveFileName) {
renderer->savePalette(*fHandle);
- globalVars.save(*fHandle, NUM_MAX_VAR - 1);
+ globalVars.save(*fHandle, NUM_MAX_VAR);
for (i = 0; i < 16; i++) {
fHandle->writeUint16BE(zoneData[i]);