aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorjohndoe1232013-06-11 11:39:28 +0200
committerjohndoe1232013-06-11 11:39:28 +0200
commitd4f3f6baa4eae9b6ab47b6f29dbd585a892e791d (patch)
treee9fc378d5ffdc2498e2f675395eab70fa0404e49 /engines
parentadd321c93049e006c202c67bdb0170b8bca83833 (diff)
downloadscummvm-rg350-d4f3f6baa4eae9b6ab47b6f29dbd585a892e791d.tar.gz
scummvm-rg350-d4f3f6baa4eae9b6ab47b6f29dbd585a892e791d.tar.bz2
scummvm-rg350-d4f3f6baa4eae9b6ab47b6f29dbd585a892e791d.zip
NEVERHOOD: Fix warning about shadowed variable
Diffstat (limited to 'engines')
-rw-r--r--engines/neverhood/console.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/neverhood/console.cpp b/engines/neverhood/console.cpp
index c6c22f97ce..87891285d7 100644
--- a/engines/neverhood/console.cpp
+++ b/engines/neverhood/console.cpp
@@ -47,11 +47,11 @@ bool Console::Cmd_Room(int argc, const char **argv) {
DebugPrintf("Use room <module> <scene> to change rooms\n");
DebugPrintf("Modules are incremental by 100, from 1000 to 3000\n");
} else {
- int module = atoi(argv[1]);
- int scene = atoi(argv[2]);
+ int newModule = atoi(argv[1]);
+ int newScene = atoi(argv[2]);
- _vm->gameState().sceneNum = scene;
- _vm->_gameModule->createModule(module, -1);
+ _vm->gameState().sceneNum = newScene;
+ _vm->_gameModule->createModule(newModule, -1);
}
return true;