From d4f3f6baa4eae9b6ab47b6f29dbd585a892e791d Mon Sep 17 00:00:00 2001 From: johndoe123 Date: Tue, 11 Jun 2013 11:39:28 +0200 Subject: NEVERHOOD: Fix warning about shadowed variable --- engines/neverhood/console.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines') 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 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; -- cgit v1.2.3