Correct error in load code for PC version of Waxworks.

svn-id: r44206
This commit is contained in:
Travis Howell 2009-09-20 13:17:07 +00:00
parent ab6caf1df6
commit 5d79d748a4

View File

@ -1265,10 +1265,10 @@ bool AGOSEngine_Elvira2::loadGame(const char *filename, bool restartMode) {
Item *item = derefItem(itemNum);
num = (itemNum - _itemArrayInited);
_roomStates[num].state = item->state;
_roomStates[num].classFlags = item->classFlags;
item->state = _roomStates[num].state;
item->classFlags = _roomStates[num].classFlags;
SubRoom *subRoom = (SubRoom *)findChildOfType(item, kRoomType);
_roomStates[num].roomExitStates = subRoom->roomExitStates;
subRoom->roomExitStates = _roomStates[num].roomExitStates;
}
}
} else {