aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/macventure/world.cpp')
-rw-r--r--engines/macventure/world.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/macventure/world.cpp b/engines/macventure/world.cpp
index 23483cb642..b8b7aeaf59 100644
--- a/engines/macventure/world.cpp
+++ b/engines/macventure/world.cpp
@@ -104,7 +104,7 @@ uint32 World::getObjAttr(ObjID objID, uint32 attrID) {
res &= _engine->getGlobalSettings()._attrMasks[attrID];
res >>= _engine->getGlobalSettings()._attrShifts[attrID];
if (res & 0x8000)
- res = -((res ^ 0xffff) + 1);
+ res = -((int)((res ^ 0xffff) + 1));
debugC(5, kMVDebugMain, "Attribute %x from object %x is %x", attrID, objID, res);
delete objStream;
return res;