Fix some memory leak from CreateTamedPetFrom.

This commit is contained in:
megamage
2011-11-28 14:10:56 -05:00
parent 529af3cd09
commit 81fea2d7b5
2 changed files with 7 additions and 0 deletions

View File

@@ -1131,6 +1131,7 @@ public:
{
handler->PSendSysMessage (LANG_CREATURE_NON_TAMEABLE, cInfo->Entry);
handler->SetSentErrorMessage (true);
delete pet;
return false;
}