diff options
Diffstat (limited to 'engines/sci/engine/script.cpp')
-rw-r--r-- | engines/sci/engine/script.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/sci/engine/script.cpp b/engines/sci/engine/script.cpp index 247be7b7df..a19da886b2 100644 --- a/engines/sci/engine/script.cpp +++ b/engines/sci/engine/script.cpp @@ -96,10 +96,8 @@ void script_adjust_opcode_formats(EngineState *s) { } #ifdef ENABLE_SCI32 - SciVersion version = s->resMan->sciVersion(); - // In SCI32, some arguments are now words instead of bytes - if (version >= SCI_VERSION_2) { + if (getSciVersion() >= SCI_VERSION_2) { g_opcode_formats[op_calle][2] = Script_Word; g_opcode_formats[op_callk][1] = Script_Word; g_opcode_formats[op_super][1] = Script_Word; |