aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v5.cpp')
-rw-r--r--scumm/script_v5.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index 6be5aeae78..86c3b7e627 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -1086,7 +1086,7 @@ void Scumm_v5::o5_getActorY() {
void Scumm_v5::o5_saveLoadGame() {
getResultPos();
byte a = getVarOrDirectByte(0x80);
- byte slot = a & 0x1F;
+ byte slot = (a & 0x1F) + 1;
byte result = 0;
switch(a & 0xE0) {
@@ -1107,6 +1107,7 @@ void Scumm_v5::o5_saveLoadGame() {
result = 0;
else
result = 2;
+ break;
case 0xC0: // test if save exists
bool avail_saves[100];
SaveFileManager *mgr = _system->get_savefile_manager();