SHERLOCK: Go to save mode when clicking empty save slot

This commit is contained in:
Paul Gilbert 2015-05-20 21:15:33 -04:00
parent 6a8e317355
commit 46e85f389f
3 changed files with 11 additions and 2 deletions

View file

@ -401,7 +401,7 @@ bool SaveManager::promptForDescription(int slot) {
screen.buttonPrint(Common::Point(ENV_POINTS[5][2], CONTROLS_Y), COMMAND_NULL, true, "Quit");
Common::String saveName = _savegames[slot];
if (saveName.equalsIgnoreCase(EMPTY_SAVEGAME_SLOT)) {
if (isSlotEmpty(slot)) {
// It's an empty slot, so start off with an empty save name
saveName = "";
@ -477,4 +477,8 @@ bool SaveManager::promptForDescription(int slot) {
return done == 1;
}
bool SaveManager::isSlotEmpty(int slot) const {
return _savegames[slot].equalsIgnoreCase(EMPTY_SAVEGAME_SLOT);
}
} // End of namespace Sherlock