aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2016-03-08 20:20:32 +0100
committerJohannes Schickel2016-03-08 20:20:36 +0100
commitc0163de084a29303972e52d2a659f7163795895f (patch)
tree7f8f1c505d8047487e0805d7def26f5ead582a2d
parent7be486ae271ff87e1f7b3d3a5b9b0596826c6cc1 (diff)
downloadscummvm-rg350-c0163de084a29303972e52d2a659f7163795895f.tar.gz
scummvm-rg350-c0163de084a29303972e52d2a659f7163795895f.tar.bz2
scummvm-rg350-c0163de084a29303972e52d2a659f7163795895f.zip
SCI: Fix build with SCI32 disabled.
Regression from d4869218200a3dd165c2f1c156f3c1620c813241.
-rw-r--r--engines/sci/engine/vm_types.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/engine/vm_types.cpp b/engines/sci/engine/vm_types.cpp
index 00a67fc9cc..d74e2b194c 100644
--- a/engines/sci/engine/vm_types.cpp
+++ b/engines/sci/engine/vm_types.cpp
@@ -242,6 +242,7 @@ int reg_t::cmp(const reg_t right, bool treatAsUnsigned) const {
return lookForWorkaround(right, "comparison").toSint16();
}
+#ifdef ENABLE_SCI32
int reg_t::sci32Comparison(const reg_t right) const {
// In SCI32, MemIDs are normally indexes into the memory manager's handle
// list, but the engine reserves indexes at and above 20000 for objects
@@ -259,6 +260,7 @@ int reg_t::sci32Comparison(const reg_t right) const {
return getOffset() - right.getOffset();
}
+#endif
bool reg_t::pointerComparisonWithInteger(const reg_t right) const {
// This function handles the case where a script tries to compare a pointer