aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPeter Kohaut2019-01-19 10:27:42 +0100
committerPeter Kohaut2019-01-19 23:15:41 +0100
commit3ac69d40a6f6cf8d7a657dbf70df1bce234ebe8e (patch)
tree6135ae7261063cce5e24be75fa1a2af980da4ce1 /engines
parent4372c3d05e3a1f3775fb7b54ddade06d96b5507c (diff)
downloadscummvm-rg350-3ac69d40a6f6cf8d7a657dbf70df1bce234ebe8e.tar.gz
scummvm-rg350-3ac69d40a6f6cf8d7a657dbf70df1bce234ebe8e.tar.bz2
scummvm-rg350-3ac69d40a6f6cf8d7a657dbf70df1bce234ebe8e.zip
BLADERUNNER: Fixed save selection in the load screen
If there was a empty slot in save game list, game would load wrong save file.
Diffstat (limited to 'engines')
-rw-r--r--engines/bladerunner/ui/kia_section_load.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/ui/kia_section_load.cpp b/engines/bladerunner/ui/kia_section_load.cpp
index bada5a1415..9b37f5e554 100644
--- a/engines/bladerunner/ui/kia_section_load.cpp
+++ b/engines/bladerunner/ui/kia_section_load.cpp
@@ -150,7 +150,7 @@ void KIASectionLoad::scrollBoxCallback(void *callbackData, void *source, int lin
} else if (lineData == self->_newGameHardLineId) {
self->_vm->newGame(2);
} else {
- self->_vm->loadGameState(lineData);
+ self->_vm->loadGameState(self->_saveList[lineData].getSaveSlot());
}
self->_vm->_audioPlayer->playAud(self->_vm->_gameInfo->getSfxTrack(513), 90, 0, 0, 50, 0);