aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2009-03-08 09:53:52 +0000
committerTravis Howell2009-03-08 09:53:52 +0000
commita630759d6db2d3f0aae4b7baf9a1e0fcf323f2e1 (patch)
treeb6b506d42188228f1a383c01b93883d1831f960e /engines
parent6b76f72f322d4b3e5d9d9dc18ace84c6c1b8f919 (diff)
downloadscummvm-rg350-a630759d6db2d3f0aae4b7baf9a1e0fcf323f2e1.tar.gz
scummvm-rg350-a630759d6db2d3f0aae4b7baf9a1e0fcf323f2e1.tar.bz2
scummvm-rg350-a630759d6db2d3f0aae4b7baf9a1e0fcf323f2e1.zip
Don't attempt to load save game slot in PN, if no match found.
svn-id: r39218
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/script_pn.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/engines/agos/script_pn.cpp b/engines/agos/script_pn.cpp
index 34a5a9ec0e..b129cc4d99 100644
--- a/engines/agos/script_pn.cpp
+++ b/engines/agos/script_pn.cpp
@@ -379,11 +379,15 @@ void AGOSEngine_PN::opn_opcode31() {
break;
}
- a = loadfl(bf);
- if (a)
- setScriptReturn(badload(a));
- else
- setScriptReturn(true);
+ if (slot == -1) {
+ setScriptReturn(false);
+ } else {
+ a = loadfl(bf);
+ if (a)
+ setScriptReturn(badload(a));
+ else
+ setScriptReturn(true);
+ }
}
void AGOSEngine_PN::opn_opcode32() {