aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-19 16:56:19 +0400
committerVladimir Menshakov2011-06-19 16:57:10 +0400
commit613a203c8a8ac6175988938fbbceaa47ee8b2877 (patch)
treef5ec2e0e11314f6693c5bbdc6c41bfecfc82bf7e /engines/dreamweb
parent5efe835f203a94d06f3ff64a9df39c9fdaae8a3b (diff)
downloadscummvm-rg350-613a203c8a8ac6175988938fbbceaa47ee8b2877.tar.gz
scummvm-rg350-613a203c8a8ac6175988938fbbceaa47ee8b2877.tar.bz2
scummvm-rg350-613a203c8a8ac6175988938fbbceaa47ee8b2877.zip
DREAMWEB: Added crash workaround
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/dreamgen.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 7c9c88136c..d4fb4441f6 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -8302,7 +8302,11 @@ findlenextext:
push(bx);
push(ax);
_sub(cx, bx);
+ _cmp(cx, 0xffff);
+ if (flags.z())
+ goto _tmp1;
_movsb(cx, true);
+_tmp1:
bx = pop();
_sub(data.word(kExtextpos), bx);
si = pop();
@@ -9536,6 +9540,9 @@ void DreamGenContext::selectlocation() {
playchannel0();
data.byte(kNewlocation) = 255;
select:
+ _cmp(data.byte(kQuitrequested), 0);
+ if (!flags.z())
+ goto quittravel;
delpointer();
readmouse();
showpointer();