aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/engine/state.cpp')
-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 047d6ca6c2..3848c512b6 100644
--- a/engines/sci/engine/state.cpp
+++ b/engines/sci/engine/state.cpp
@@ -574,9 +574,9 @@ SciVersion EngineState::detectGfxFunctionsType() {
offset += 2;
}
- argc = scr[offset++];
-
if (opcode == op_callk) {
+ argc = scr[offset++];
+
if (kFuncNum == 8) { // kDrawPic
// If kDrawPic is called with 6 parameters from the
// overlay selector, the game is using old graphics functions.