aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorJohannes Schickel2010-08-14 08:44:29 +0000
committerJohannes Schickel2010-08-14 08:44:29 +0000
commitb7ab1d41bfaffa1e8e9342d83ee1ee7b6e59b4d9 (patch)
treefbfa17ed0b46b665b4880b4909d5009464cc77ee /engines/sci
parentf8697e20b50607e93df0cf3ddf725d6fee6360cf (diff)
downloadscummvm-rg350-b7ab1d41bfaffa1e8e9342d83ee1ee7b6e59b4d9.tar.gz
scummvm-rg350-b7ab1d41bfaffa1e8e9342d83ee1ee7b6e59b4d9.tar.bz2
scummvm-rg350-b7ab1d41bfaffa1e8e9342d83ee1ee7b6e59b4d9.zip
SCI: Silence shadowed variable warning of g++.
svn-id: r52082
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/vm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp
index af4d4eb880..0500cc601b 100644
--- a/engines/sci/engine/vm.cpp
+++ b/engines/sci/engine/vm.cpp
@@ -1796,7 +1796,7 @@ void run_vm(EngineState *s) {
case op_lagi: // 0x48 (72)
case op_lali: // 0x49 (73)
case op_lati: // 0x4a (74)
- case op_lapi: // 0x4b (75)
+ case op_lapi: { // 0x4b (75)
// Load global, local, temp or param variable into the accumulator,
// using the accumulator as an additional index
var_type = opcode & 0x3; // Gets the variable type: g, l, t or p
@@ -1806,6 +1806,7 @@ void run_vm(EngineState *s) {
var_number = opparams[0] + value;
s->r_acc = READ_VAR(var_type, var_number);
break;
+ }
case op_lsgi: // 0x4c (76)
case op_lsli: // 0x4d (77)