aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2003-09-01 07:50:47 +0000
committerTravis Howell2003-09-01 07:50:47 +0000
commit97545e41fb44aa37c419061abd5bc9282740f796 (patch)
treeda8cbcf9a6478daee0eed8ce8f9ac07c11527397
parent178b0d82dfcdb923b2835465d87f75ed9271bd1d (diff)
downloadscummvm-rg350-97545e41fb44aa37c419061abd5bc9282740f796.tar.gz
scummvm-rg350-97545e41fb44aa37c419061abd5bc9282740f796.tar.bz2
scummvm-rg350-97545e41fb44aa37c419061abd5bc9282740f796.zip
Add missing break
Skip auto save slot. svn-id: r9953
-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();