aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-17 16:32:12 +0200
committerFilippos Karapetis2011-12-17 16:32:12 +0200
commit9fdb38d39510d81de43c887e95bae5b6e6a91156 (patch)
tree9730424e757eea661f40de72147bf5adeb6c9207
parent400bda78d2ad98c7671c384e58cb6d74ba7579fd (diff)
downloadscummvm-rg350-9fdb38d39510d81de43c887e95bae5b6e6a91156.tar.gz
scummvm-rg350-9fdb38d39510d81de43c887e95bae5b6e6a91156.tar.bz2
scummvm-rg350-9fdb38d39510d81de43c887e95bae5b6e6a91156.zip
DREAMWEB: Fix another regression in the ASM-style version of getOpenedSize()
-rw-r--r--engines/dreamweb/object.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/dreamweb/object.cpp b/engines/dreamweb/object.cpp
index dbae7e2ba5..29e6d52ba7 100644
--- a/engines/dreamweb/object.cpp
+++ b/engines/dreamweb/object.cpp
@@ -294,16 +294,17 @@ void DreamGenContext::getOpenedSize() {
switch (data.byte(kOpenedtype)) {
case 4:
getExAd();
+ ax = es.word(bx+7);
break;
case 2:
getFreeAd();
+ ax = es.word(bx+7);
break;
default:
getSetAd();
+ ax = es.word(bx+3);
break;
}
-
- ax = es.word(bx+7);
}
byte DreamGenContext::getOpenedSizeCPP() {