aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2009-07-14 21:50:22 +0000
committerMax Horn2009-07-14 21:50:22 +0000
commitcc60b13597b27f6c04c3c6e0ce82faa294b3c3a1 (patch)
tree0e8538c7b7025c10296174ec553314141b6603d9 /engines
parentebe3e42fba660204c67fb3254a0c3335ecd612ea (diff)
downloadscummvm-rg350-cc60b13597b27f6c04c3c6e0ce82faa294b3c3a1.tar.gz
scummvm-rg350-cc60b13597b27f6c04c3c6e0ce82faa294b3c3a1.tar.bz2
scummvm-rg350-cc60b13597b27f6c04c3c6e0ce82faa294b3c3a1.zip
AGOS: Fixed potential OOBA crash in AGOSEngine_PN::opn_opcode26
svn-id: r42492
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/script_pn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/script_pn.cpp b/engines/agos/script_pn.cpp
index 8c16765765..9fe05f7f6a 100644
--- a/engines/agos/script_pn.cpp
+++ b/engines/agos/script_pn.cpp
@@ -328,7 +328,7 @@ void AGOSEngine_PN::opn_opcode25() {
}
void AGOSEngine_PN::opn_opcode26() {
- while ((_stackbase->classnum != -1) && (_stackbase != NULL))
+ while ((_stackbase != NULL) && (_stackbase->classnum != -1))
junkstack();
dumpstack();
setScriptReturn(true);