mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 23:57:32 +00:00
NEVERHOOD: Fix warning about shadowed variable
This commit is contained in:
parent
add321c930
commit
d4f3f6baa4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user