diff options
-rw-r--r-- | object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/object.cpp b/object.cpp index ae25a4ef53..7e11c83993 100644 --- a/object.cpp +++ b/object.cpp @@ -28,7 +28,7 @@ bool Scumm::getClass(int obj, int cls) { cls &= 0x7F; checkRange(32,1,cls,"Class %d out of range in getClass"); - if (_features && GF_SMALL_HEADER) { + if (_features & GF_SMALL_HEADER) { byte *oldClass = (byte*)&_classData[obj]; if (cls == 32) // CLASS_TOUCHABLE cls = 23; @@ -44,7 +44,7 @@ void Scumm::putClass(int obj, int cls, bool set) { cls &= 0x7F; checkRange(32,1,cls,"Class %d out of range in getClass"); - if (_features && GF_SMALL_HEADER) { + if (_features & GF_SMALL_HEADER) { byte *oldClass = (byte*)&_classData[obj]; if (cls == 32) // CLASS_TOUCHABLE cls = 23; |