*Fix build. Sorry.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-25 11:11:19 -06:00
parent 6583a6f970
commit 6efcd8256d
+2 -2
View File
@@ -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;