Skip to content

Commit

Permalink
Fix crash when trying to change attribute of invalidated entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammie committed Dec 24, 2023
1 parent c3cdd83 commit c7a6cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/core/src/core_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ void CoreImpl::Entity_SetAttributePointer(entid_t id_PTR, ATTRIBUTES *pA)

uint32_t CoreImpl::Entity_AttributeChanged(entid_t id_PTR, ATTRIBUTES *pA)
{
Entity *pE = GetEntityPointer(id_PTR);
Entity *pE = GetEntityPointerSafe(id_PTR);
if (pE == nullptr)
return 0;
return pE->AttributeChanged(pA);
Expand Down

0 comments on commit c7a6cda

Please sign in to comment.