aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/prince/prince.h2
-rw-r--r--engines/prince/script.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/prince/prince.h b/engines/prince/prince.h
index e443ebd38a..7143251b4f 100644
--- a/engines/prince/prince.h
+++ b/engines/prince/prince.h
@@ -185,7 +185,7 @@ enum AnimType {
// Nak (PL - Nakladka)
struct Mask {
- int16 _state; // visible / invisible
+ uint16 _state; // visible / invisible
int16 _flags; // turning on / turning off of an mask
int16 _x1;
int16 _y1;
diff --git a/engines/prince/script.cpp b/engines/prince/script.cpp
index c675b6d177..0e9dd27877 100644
--- a/engines/prince/script.cpp
+++ b/engines/prince/script.cpp
@@ -371,7 +371,7 @@ bool Script::loadAllMasks(Common::Array<Mask> &maskList, int offset) {
Common::MemoryReadStream maskStream(_data, _dataSize);
maskStream.seek(offset);
tempMask._state = maskStream.readUint16LE();
- if (tempMask._state == -1) {
+ if (tempMask._state == 0xffff) {
break;
}
tempMask._flags = maskStream.readUint16LE();