diff --git a/server/gameserver/hero.cc b/server/gameserver/hero.cc index 44465e5..16509fd 100644 --- a/server/gameserver/hero.cc +++ b/server/gameserver/hero.cc @@ -18,6 +18,9 @@ Hero::Hero():Creature() Hero::~Hero() { + if (ai) { + A8_SAFE_DELETE(ai); + } --PerfMonitor::Instance()->entity_num[ET_Hero]; }