From 72e2fbc1ae68fd9c69445435b34c599b29ffdf58 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 11 Jun 2013 18:26:26 +0200 Subject: NEVERHOOD: Fix GCC warnings about shadowed variables --- engines/neverhood/console.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/neverhood/console.cpp b/engines/neverhood/console.cpp index 917eae596f..eae6b92ba6 100644 --- a/engines/neverhood/console.cpp +++ b/engines/neverhood/console.cpp @@ -82,8 +82,8 @@ bool Console::Cmd_Cheat(int argc, const char **argv) { } Common::String cheatName = argv[1]; - int module = _vm->_gameModule->getCurrentModuleNum(); - int scene = _vm->gameState().sceneNum; + int moduleNum = _vm->_gameModule->getCurrentModuleNum(); + int sceneNum = _vm->gameState().sceneNum; if (cheatName == "buttons") { Scene *scene = (Scene *)((GameModule *)_vm->_gameModule->_childObject)->_childObject; @@ -134,7 +134,7 @@ bool Console::Cmd_Cheat(int argc, const char **argv) { DebugPrintf("The radio has been enabled\n"); } else if (cheatName == "symbols") { - if (module == 1600 && scene == 8) { + if (moduleNum == 1600 && sceneNum == 8) { Scene1609 *scene = ((Scene1609 *)((Module1600 *)_vm->_gameModule->_childObject)->_childObject); for (int index = 0; index < 12; index++) { -- cgit v1.2.3