mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[9580] Add ObjectGuid const& Object::GetObjectGuid() and restore build.
This commit is contained in:
parent
2bf75e7a10
commit
ab7840a591
16 changed files with 32 additions and 32 deletions
|
|
@ -148,7 +148,7 @@ Creature::~Creature()
|
|||
void Creature::AddToWorld()
|
||||
{
|
||||
///- Register the creature for guid lookup
|
||||
if(!IsInWorld() && GetGUIDHigh() == HIGHGUID_UNIT)
|
||||
if(!IsInWorld() && GetObjectGuid().GetHigh() == HIGHGUID_UNIT)
|
||||
GetMap()->GetObjectsStore().insert<Creature>(GetGUID(), (Creature*)this);
|
||||
|
||||
Unit::AddToWorld();
|
||||
|
|
@ -157,7 +157,7 @@ void Creature::AddToWorld()
|
|||
void Creature::RemoveFromWorld()
|
||||
{
|
||||
///- Remove the creature from the accessor
|
||||
if(IsInWorld() && GetGUIDHigh() == HIGHGUID_UNIT)
|
||||
if(IsInWorld() && GetObjectGuid().GetHigh() == HIGHGUID_UNIT)
|
||||
GetMap()->GetObjectsStore().erase<Creature>(GetGUID(), (Creature*)NULL);
|
||||
|
||||
Unit::RemoveFromWorld();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue