mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-30 13:47:57 +00:00
Fixed a couple of memory leaks.
This commit is contained in:
@@ -2310,7 +2310,10 @@ bool Merc::AICastSpell(int8 iChance, int32 iSpellTypes) {
|
||||
//we don't need spam of bots healing themselves
|
||||
MakeAnyLenString(&gmsg, "Casting %s on %s.", spells[selectedMercSpell.spellid].name, tar->GetCleanName());
|
||||
if(gmsg)
|
||||
{
|
||||
MercGroupSay(this, gmsg);
|
||||
safe_delete_array(gmsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user