aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dreamweb')
-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() {