diff options
author | XTZGZoReX <none@none> | 2009-03-25 20:08:15 +0100 |
---|---|---|
committer | XTZGZoReX <none@none> | 2009-03-25 20:08:15 +0100 |
commit | 53cce67b29dcddd5cf957317f57d54e857706e4a (patch) | |
tree | 54c94b87bc84c77f796aee0a0ea8e4591e2a4ff9 /src | |
parent | 6b5d111e9046c39ebf3dbd5270cd08f1c5535536 (diff) | |
parent | 6efcd8256d35e936d9176918510c31e04e2483e5 (diff) |
* Merge.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 7d04349f311..e677af70ee4 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8319,7 +8319,7 @@ void Unit::SetPet(Creature* pet, bool apply) { if(apply) { - if(!pet->AddUInt64Value(UNIT_FIELD_SUMMONEDBY, GetGuid())) + if(!pet->AddUInt64Value(UNIT_FIELD_SUMMONEDBY, GetGUID())) { sLog.outCrash("Pet %u is summoned by %u but it already has a owner", pet->GetEntry(), GetEntry()); return; @@ -8334,7 +8334,7 @@ void Unit::SetPet(Creature* pet, bool apply) } else { - if(!pet->RemoveUInt64Value(UNIT_FIELD_SUMMONEDBY, GetGuid()) + if(!pet->RemoveUInt64Value(UNIT_FIELD_SUMMONEDBY, GetGUID())) { sLog.outCrash("Pet %u is unsummoned by %u but it has another owner", pet->GetEntry(), GetEntry()); return; |