This commit is contained in:
Christian Semmler 2024-02-10 12:50:09 -05:00
parent 0644633fb8
commit 9ca04dcae7

View File

@ -138,10 +138,10 @@ void NotifyEntity(const char* p_filename, MxS32 p_entityId, LegoEntity* p_sender
if (entity == NULL) {
LegoWorldListCursor cursor(Lego()->GetWorldList());
LegoWorld* current;
LegoWorld* world;
while (cursor.Next(current)) {
entity = (LegoEntity*) current->Find(atom, p_entityId);
while (cursor.Next(world)) {
entity = (LegoEntity*) world->Find(atom, p_entityId);
if (entity != NULL)
break;