This commit is contained in:
megamage
2011-11-28 14:34:30 -05:00
parent 1f70fd2851
commit 5b034ee631
3 changed files with 1 additions and 12 deletions

View File

@@ -1126,12 +1126,11 @@ public:
}
// Everything looks OK, create new pet
Pet* pet = player->CreateTamedPetFrom (creatureTarget);
Pet* pet = player->CreateTamedPetFrom(creatureTarget);
if (!pet)
{
handler->PSendSysMessage (LANG_CREATURE_NON_TAMEABLE, cInfo->Entry);
handler->SetSentErrorMessage (true);
delete pet;
return false;
}