From c0163de084a29303972e52d2a659f7163795895f Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 8 Mar 2016 20:20:32 +0100 Subject: SCI: Fix build with SCI32 disabled. Regression from d4869218200a3dd165c2f1c156f3c1620c813241. --- engines/sci/engine/vm_types.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3