mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-11 13:06:49 +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;
|
m_item->RoomNumber = room;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
ItemNewRoom(m_num, room);
|
||||||
|
|
||||||
// HACK: For Lara, we need to manually force Location.roomNumber to new one,
|
// HACK: For Lara, we need to manually force Location.roomNumber to new one,
|
||||||
// or else camera won't be updated properly.
|
// or else camera won't be updated properly.
|
||||||
|
|
||||||
if (m_item->IsLara())
|
if (m_item->IsLara())
|
||||||
m_item->RoomNumber = m_item->Location.roomNumber = room;
|
m_item->Location.roomNumber = room;
|
||||||
|
|
||||||
ItemNewRoom(m_num, room);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue