diff options
author | Malcrom <malcromdev@gmail.com> | 2013-06-11 18:39:51 -0230 |
---|---|---|
committer | Malcrom <malcromdev@gmail.com> | 2013-06-11 18:39:51 -0230 |
commit | 047608e7de743e4f59ec2450a474c6a9c5234b68 (patch) | |
tree | 4c769af362a74d08ee19252a268fe0d5d6895573 /src/server/game/Maps/Map.cpp | |
parent | 9ec22fffa00135cd776afebe2899bf54fb52f15f (diff) |
Core/SAI: Add check so npc will not send text to pet. Also updated isPet() to IsPet().
Diffstat (limited to 'src/server/game/Maps/Map.cpp')
-rw-r--r-- | src/server/game/Maps/Map.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index 493ddc662b4..3addb2442e7 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -839,7 +839,7 @@ void Map::MoveAllCreaturesInMoveList() //But this check is always needed to ensure safety /// @todo pets will disappear if this is outside CreatureRespawnRelocation //need to check why pet is frequently relocated to an unloaded cell - if (c->isPet()) + if (c->IsPet()) ((Pet*)c)->Remove(PET_SAVE_NOT_IN_SLOT, true); else AddObjectToRemoveList(c); @@ -2232,7 +2232,7 @@ void Map::AddToActive(Creature* c) AddToActiveHelper(c); // also not allow unloading spawn grid to prevent creating creature clone at load - if (!c->isPet() && c->GetDBTableGUIDLow()) + if (!c->IsPet() && c->GetDBTableGUIDLow()) { float x, y, z; c->GetRespawnPosition(x, y, z); @@ -2253,7 +2253,7 @@ void Map::RemoveFromActive(Creature* c) RemoveFromActiveHelper(c); // also allow unloading spawn grid - if (!c->isPet() && c->GetDBTableGUIDLow()) + if (!c->IsPet() && c->GetDBTableGUIDLow()) { float x, y, z; c->GetRespawnPosition(x, y, z); |