[Scummvm-cvs-logs] scummvm master -> fffb3db0a6d105476b513c66dbabe049702a8522

Strangerke Strangerke at scummvm.org
Sun Mar 2 18:12:17 CET 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
fffb3db0a6 TOLTECS: Reduce the scope of one more variable


Commit: fffb3db0a6d105476b513c66dbabe049702a8522
    https://github.com/scummvm/scummvm/commit/fffb3db0a6d105476b513c66dbabe049702a8522
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-03-02T09:10:31-08:00

Commit Message:
TOLTECS: Reduce the scope of one more variable

Changed paths:
    engines/toltecs/menu.cpp



diff --git a/engines/toltecs/menu.cpp b/engines/toltecs/menu.cpp
index 32f2085..a587714 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 {






More information about the Scummvm-git-logs mailing list