diff options
-rw-r--r-- | engines/prince/script.cpp | 8 | ||||
-rw-r--r-- | engines/prince/script.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/prince/script.cpp b/engines/prince/script.cpp index 2ca18746de..fba021d0f5 100644 --- a/engines/prince/script.cpp +++ b/engines/prince/script.cpp @@ -451,12 +451,12 @@ void InterpreterFlags::resetAllFlags() { memset(_flags, 0, sizeof(_flags)); } -void InterpreterFlags::setFlagValue(Flags::Id flagId, uint16 value) { - _flags[(uint16)flagId - FLAG_MASK] = value; +void InterpreterFlags::setFlagValue(Flags::Id flagId, uint32 value) { + _flags[(uint32)flagId - FLAG_MASK] = value; } -uint16 InterpreterFlags::getFlagValue(Flags::Id flagId) { - return _flags[(uint16)flagId - FLAG_MASK]; +uint32 InterpreterFlags::getFlagValue(Flags::Id flagId) { + return _flags[(uint32)flagId - FLAG_MASK]; } Interpreter::Interpreter(PrinceEngine *vm, Script *script, InterpreterFlags *flags) : diff --git a/engines/prince/script.h b/engines/prince/script.h index 17ae0dc917..11f1cb8cd7 100644 --- a/engines/prince/script.h +++ b/engines/prince/script.h @@ -165,8 +165,8 @@ class InterpreterFlags { public: InterpreterFlags(); - void setFlagValue(Flags::Id flag, uint16 value); - uint16 getFlagValue(Flags::Id flag); + void setFlagValue(Flags::Id flag, uint32 value); + uint32 getFlagValue(Flags::Id flag); void resetAllFlags(); @@ -174,7 +174,7 @@ public: private: static const uint16 MAX_FLAGS = 2000; - int16 _flags[MAX_FLAGS]; + int32 _flags[MAX_FLAGS]; }; class Interpreter { |