2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:07:42 +00:00

Fix disappearing actor issue

This commit is contained in:
Jack Andersen
2018-03-04 13:23:21 -10:00
parent 055de86170
commit 017185109f
5 changed files with 9 additions and 11 deletions

View File

@@ -36,9 +36,9 @@ void CObjectList::RemoveObject(TUniqueId uid)
}
else
{
x0_list[ent.prev].next = ent.next;
if (ent.next != -1)
x0_list[ent.next].prev = -1;
x0_list[ent.prev].next = -1;
x0_list[ent.next].prev = ent.prev;
}
ent.entity = nullptr;
ent.next = -1;