aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorKirben2015-05-18 16:09:44 +1000
committerKirben2015-05-18 16:09:44 +1000
commit08744f4ebf140a826715af2c295f4c3cc393bce2 (patch)
tree3b5eda1db66ac42a4019efe84694f0da79a848dc /engines
parent3b092e5d60760de81ceecdad0901c51883fe077e (diff)
downloadscummvm-rg350-08744f4ebf140a826715af2c295f4c3cc393bce2.tar.gz
scummvm-rg350-08744f4ebf140a826715af2c295f4c3cc393bce2.tar.bz2
scummvm-rg350-08744f4ebf140a826715af2c295f4c3cc393bce2.zip
AGOS: Fix restoring room state, when changing rooms in PC version of Waxworks.
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/rooms.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/agos/rooms.cpp b/engines/agos/rooms.cpp
index 6185653d42..0eac79e83f 100644
--- a/engines/agos/rooms.cpp
+++ b/engines/agos/rooms.cpp
@@ -446,13 +446,13 @@ bool AGOSEngine::loadRoomItems(uint16 room) {
itemTmp = derefItem(itemTmp->next);
}
- }
- uint16 num = (itemNum - _itemArrayInited);
- item->state = _roomStates[num].state;
- item->classFlags = _roomStates[num].classFlags;
- SubRoom *subRoom = (SubRoom *)findChildOfType(item, kRoomType);
- subRoom->roomExitStates = _roomStates[num].roomExitStates;
+ uint16 num = (itemNum - _itemArrayInited);
+ item->state = _roomStates[num].state;
+ item->classFlags = _roomStates[num].classFlags;
+ SubRoom *subRoom = (SubRoom *)findChildOfType(item, kRoomType);
+ subRoom->roomExitStates = _roomStates[num].roomExitStates;
+ }
}
in.close();