aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-09 16:20:15 +0000
committerFilippos Karapetis2009-10-09 16:20:15 +0000
commit6e6336ece7b0f578126149570529480850b6b136 (patch)
tree901b6e17b4f6a3c78bc5c8f77cc5872f3fd32192
parent4011e948e71b8bf03493caeede8c2018e6d756a0 (diff)
downloadscummvm-rg350-6e6336ece7b0f578126149570529480850b6b136.tar.gz
scummvm-rg350-6e6336ece7b0f578126149570529480850b6b136.tar.bz2
scummvm-rg350-6e6336ece7b0f578126149570529480850b6b136.zip
Fixed an issue when examining callk calls in the new graphics functions detection routine
svn-id: r44829
-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