aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-21 22:44:25 +0000
committerJohannes Schickel2010-01-21 22:44:25 +0000
commit8257b1106cf8c037c56ee855edc3d8dd32d12dd8 (patch)
tree06e66e4b47bc5e241c03b90db0da5a33aa26b8b0 /engines/sci
parentc8e2b0f9674f4949b61f5dbeff931f7cc6328d2f (diff)
downloadscummvm-rg350-8257b1106cf8c037c56ee855edc3d8dd32d12dd8.tar.gz
scummvm-rg350-8257b1106cf8c037c56ee855edc3d8dd32d12dd8.tar.bz2
scummvm-rg350-8257b1106cf8c037c56ee855edc3d8dd32d12dd8.zip
Fix gcc warning.
svn-id: r47425
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/vm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp
index b53f3e3aaf..0bddd34eb6 100644
--- a/engines/sci/engine/vm.cpp
+++ b/engines/sci/engine/vm.cpp
@@ -1002,8 +1002,8 @@ void run_vm(EngineState *s, int restoring) {
if (saveSlot < 0)
error("Requested to load invalid save slot"); // should never happen, really
- reg_t argv[2] = { NULL_REG, make_reg(0, saveSlot) }; // special GMM call (argv[0] is NULL)
- kRestoreGame(s, 2, argv);
+ reg_t restoreArgv[2] = { NULL_REG, make_reg(0, saveSlot) }; // special GMM call (argv[0] is NULL)
+ kRestoreGame(s, 2, restoreArgv);
} else {
// Call kernel function
s->r_acc = kfun.fun(s, argc, argv);