diff --git a/server/gameserver/entity.h b/server/gameserver/entity.h index 7d97cf63..fcd3f984 100644 --- a/server/gameserver/entity.h +++ b/server/gameserver/entity.h @@ -63,6 +63,8 @@ class Entity EntityWeakPtr& GetEntityWeakPtrRef(); bool IsClientCached(Human* hum); bool CanClientCache(Human* hum); + bool IsDestorying() { return destorying_; }; + void SetDestorying() { destorying_ = true;}; protected: void AddClientCache(Human* hum); @@ -72,6 +74,7 @@ private: private: int uniid_ = 0; + bool destorying_ = false; EntityType_e entity_type_ = ET_None; EntitySubType_e entity_subtype_ = EST_None;