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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/engine/state.cpp b/engines/sci/engine/state.cpp
index 8bc796621a..85cf099a2c 100644
--- a/engines/sci/engine/state.cpp
+++ b/engines/sci/engine/state.cpp
@@ -543,6 +543,7 @@ SciVersion EngineState::detectGfxFunctionsType() {
int opsize = scr[offset++];
uint opcode = opsize >> 1;
int i = 0;
+ byte argc;
while (g_opcode_formats[opcode][i]) {
switch (g_opcode_formats[opcode][i++]) {
@@ -570,7 +571,7 @@ SciVersion EngineState::detectGfxFunctionsType() {
offset += 2;
}
- byte argc = scr[offset++];
+ argc = scr[offset++];
if (opcode == op_callk) {
if (kFuncNum == 8) { // kDrawPic