From 2e61839d93728d4193b5542558369f8cf05be61d Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Fri, 22 Apr 2022 00:10:15 -0700 Subject: [PATCH] isPlayer changes Changed isPlayer to check for whether the entity has a character instead of checking system address of entity. --- dGame/Entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dGame/Entity.cpp b/dGame/Entity.cpp index 57b7af14..780ae45c 100644 --- a/dGame/Entity.cpp +++ b/dGame/Entity.cpp @@ -1739,7 +1739,7 @@ void Entity::CancelAllTimers() { } bool Entity::IsPlayer() const { - return m_TemplateID == 1 && GetSystemAddress() != UNASSIGNED_SYSTEM_ADDRESS; + return m_TemplateID == 1 && GetCharacter() != nullptr; } void Entity::TriggerEvent(std::string eventID, Entity* optionalTarget) {