Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Fix IsEntity sometimes returning true for previously deleted entities #508

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/libs/core/src/internal_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,10 @@ DATA *COMPILER::BC_CallIntFunction(uint32_t func_code, DATA *&pVResult, uint32_t
}
pV->Get(ent);
core.EraseEntity(ent);

// Make sure to clear entity id
ent = invalid_entity;
pV->Set(ent);
break;
//
case FUNC_DEL_EVENT_HANDLER:
Expand Down
Loading