mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-08 03:28:03 +03:00
Fix linked list corruption
This commit is contained in:
parent
0a77cf81b5
commit
f77a39ee2c
1 changed files with 3 additions and 3 deletions
|
@ -875,13 +875,13 @@ void Moveable::SetRoom(short room)
|
|||
m_item->RoomNumber = room;
|
||||
else
|
||||
{
|
||||
ItemNewRoom(m_num, room);
|
||||
|
||||
// HACK: For Lara, we need to manually force Location.roomNumber to new one,
|
||||
// or else camera won't be updated properly.
|
||||
|
||||
if (m_item->IsLara())
|
||||
m_item->RoomNumber = m_item->Location.roomNumber = room;
|
||||
|
||||
ItemNewRoom(m_num, room);
|
||||
m_item->Location.roomNumber = room;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue