From b91cdd6d8d2bd99b684ab86b6890d60e6728c369 Mon Sep 17 00:00:00 2001 From: Olion Date: Thu, 1 Oct 2015 00:09:28 +0300 Subject: [PATCH] a minor cleanup --- src/game/Object/Creature.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Object/Creature.cpp b/src/game/Object/Creature.cpp index eec4f78d..e6eb48fe 100644 --- a/src/game/Object/Creature.cpp +++ b/src/game/Object/Creature.cpp @@ -187,7 +187,7 @@ void Creature::AddToWorld() #endif /* ENABLE_ELUNA */ ///- Register the creature for guid lookup - if (!IsInWorld() && GetObjectGuid().GetHigh() == HIGHGUID_UNIT) + if (!IsInWorld() && GetObjectGuid().IsCreature()) { GetMap()->GetObjectsStore().insert(GetObjectGuid(), (Creature*)this); } Unit::AddToWorld(); @@ -211,7 +211,7 @@ void Creature::RemoveFromWorld() #endif /* ENABLE_ELUNA */ ///- Remove the creature from the accessor - if (IsInWorld() && GetObjectGuid().GetHigh() == HIGHGUID_UNIT) + if (IsInWorld() && GetObjectGuid().IsCreature()) { GetMap()->GetObjectsStore().erase(GetObjectGuid(), (Creature*)NULL); } Unit::RemoveFromWorld();