diff options
author | Strangerke | 2014-03-02 18:10:31 +0100 |
---|---|---|
committer | Strangerke | 2014-03-02 18:10:31 +0100 |
commit | fffb3db0a6d105476b513c66dbabe049702a8522 (patch) | |
tree | 65dd49ea3007e74cfcabb3427fda495cc82bbe4b /engines/toltecs | |
parent | 6a84bf61a54bec04702629a335d601554549054b (diff) | |
download | scummvm-rg350-fffb3db0a6d105476b513c66dbabe049702a8522.tar.gz scummvm-rg350-fffb3db0a6d105476b513c66dbabe049702a8522.tar.bz2 scummvm-rg350-fffb3db0a6d105476b513c66dbabe049702a8522.zip |
TOLTECS: Reduce the scope of one more variable
Diffstat (limited to 'engines/toltecs')
-rw-r--r-- | engines/toltecs/menu.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/toltecs/menu.cpp b/engines/toltecs/menu.cpp index 32f2085dba..a58771433e 100644 --- a/engines/toltecs/menu.cpp +++ b/engines/toltecs/menu.cpp @@ -224,8 +224,6 @@ void MenuSystem::setItemCaption(Item *item, const char *caption) { } void MenuSystem::initMenu(MenuID menuID) { - int newSlotNum; - _items.clear(); memcpy(_vm->_screen->_frontScreen, _background->getPixels(), 640 * 400); @@ -276,7 +274,7 @@ void MenuSystem::initMenu(MenuID menuID) { Common::String saveDesc = Common::String::format("SAVEGAME %d", i); addClickTextItem((ItemID)(kItemIdSavegame1 + i - 1), 0, 116 + 20 * (i - 1), 300, 0, saveDesc.c_str(), 231, 234); } - newSlotNum = loadSavegamesList() + 1; + int newSlotNum = loadSavegamesList() + 1; _savegames.push_back(SavegameItem(newSlotNum, Common::String::format("GAME %04d", _savegames.size()))); setSavegameCaptions(true); } else { |