aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/dreamgen.cpp
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-12 23:21:09 +0400
committerAlyssa Milburn2011-06-15 17:34:37 +0200
commit6deff847492e33bf270806cacb85ae4db3cc530c (patch)
tree976564dcd48e5beded544785c30e4ac1a9d39445 /engines/dreamweb/dreamgen.cpp
parent39d8f43bf3371f6617b831a98c9947a0d6b1a55a (diff)
downloadscummvm-rg350-6deff847492e33bf270806cacb85ae4db3cc530c.tar.gz
scummvm-rg350-6deff847492e33bf270806cacb85ae4db3cc530c.tar.bz2
scummvm-rg350-6deff847492e33bf270806cacb85ae4db3cc530c.zip
DREAMWEB: fixed crash on room changing
Diffstat (limited to 'engines/dreamweb/dreamgen.cpp')
-rw-r--r--engines/dreamweb/dreamgen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 01992eda6c..29b0955f07 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -17870,6 +17870,9 @@ norun:
}
void checkcoords(Context & context) {
+ context._cmp(context.data.byte(kNewlocation), 255);
+ if (context.flags.z()) goto loop048;
+ return;
loop048:
context.ax = context.cs.word(context.bx);
context._cmp(context.ax, 0x0ffff);