aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/state.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/state.cpp b/engines/sci/engine/state.cpp
index f187ea34e3..8bc796621a 100644
--- a/engines/sci/engine/state.cpp
+++ b/engines/sci/engine/state.cpp
@@ -570,10 +570,10 @@ SciVersion EngineState::detectGfxFunctionsType() {
offset += 2;
}
+ byte argc = scr[offset++];
+
if (opcode == op_callk) {
if (kFuncNum == 8) { // kDrawPic
- // Now get the number of parameters
- byte argc = scr[offset++];
// If kDrawPic is called with 6 parameters from the
// overlay selector, the game is using old graphics functions.
// Otherwise, if it's called with 8 parameters, it's using new