mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
* Fix build.
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user