mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-08 03:28:03 +03:00
Fix another 64-bit specific crash with ID_NO_OBJECT
This commit is contained in:
parent
d41927c8fd
commit
7095c42875
6 changed files with 29 additions and 8 deletions
|
@ -110,6 +110,8 @@ static std::unique_ptr<Moveable> Create(
|
|||
{
|
||||
auto* item = &g_Level.Items[num];
|
||||
|
||||
ptr->SetObjectID(objID);
|
||||
|
||||
if (std::holds_alternative<short>(room))
|
||||
{
|
||||
ptr->SetPos(pos, false);
|
||||
|
@ -121,7 +123,6 @@ static std::unique_ptr<Moveable> Create(
|
|||
}
|
||||
|
||||
ptr->SetRot(USE_IF_HAVE(Rotation, rot, Rotation{}));
|
||||
ptr->SetObjectID(objID);
|
||||
ptr->Init();
|
||||
|
||||
ptr->SetAnimNumber(USE_IF_HAVE(int, animNumber, 0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue