* Fix build.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2009-03-25 17:57:05 +01:00
parent d2e0ed5f57
commit 6583a6f970

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;