aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/stubs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r--engines/dreamweb/stubs.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index f98e069d3a..c94735f231 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -747,7 +747,12 @@ void DreamGenContext::makebackob(SetObject *objData) {
}
void DreamGenContext::getroomdata() {
- bx = kRoomdata + sizeof(Room) * al;
+ Room *room = getroomdata(al);
+ bx = (uint8 *)room - cs.ptr(0, 0);
+}
+
+Room *DreamGenContext::getroomdata(uint8 room) {
+ return (Room *)cs.ptr(kRoomdata, 0) + room;
}
void DreamGenContext::startloading() {