Fix memleak in Mob::TemporaryPets

This commit is contained in:
Michael Cook (mackal)
2015-01-03 18:42:28 -05:00
parent 6897aef4b5
commit 09d76605f5
+3
View File
@@ -606,6 +606,9 @@ void Mob::TemporaryPets(uint16 spell_id, Mob *targ, const char *name_override, u
//the target of these swarm pets will take offense to being cast on...
if(targ != nullptr)
targ->AddToHateList(this, 1, 0);
// The other pointers we make are handled elsewhere.
delete made_npc;
}
void Mob::TypesTemporaryPets(uint32 typesid, Mob *targ, const char *name_override, uint32 duration_override, bool followme, bool sticktarg) {