Patch 671031: Fix for MI1 intro crash + others (move new object

clearing code into a more generic function, and call it earlier)

svn-id: r6548
This commit is contained in:
James Brown 2003-01-26 10:57:01 +00:00
parent 8d9b84b98e
commit d1eb2636f4
3 changed files with 32 additions and 23 deletions

View file

@ -652,6 +652,8 @@ void Scumm::startScene(int room, Actor * a, int objectNr)
if (room != 0)
ensureResourceLoaded(rtRoom, room);
clearRoomObjects();
if (_currentRoom == 0) {
_ENCD_offs = _EXCD_offs = 0;
_numObjectsInRoom = 0;