mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-14 02:32:25 +00:00
Fix memleak in Mob::TemporaryPets
This commit is contained in:
parent
6897aef4b5
commit
09d76605f5
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user