Make the AI stopping a little less silly on zone shutdown

This commit is contained in:
Michael Cook (mackal) committed 2015-01-10 02:34:38 -05:00
1 parent 00ba6e761e
commit 5b78acc45e
3 files changed
+10 -9

No files matched your search

+1 -9
View File
@@ -662,15 +662,7 @@ void Zone::Shutdown(bool quite)
if (!ZoneLoaded)
return;
std::list<Mob*> mob_list;
entity_list.GetMobList(mob_list);
std::list<Mob*>::iterator mob_itr = mob_list.begin();
while (mob_itr != mob_list.end()) {
Mob* mob_inst = *mob_itr;
mob_inst->AI_Stop();
mob_inst->AI_ShutDown();
++mob_itr;
}
entity_list.StopMobAI();
std::map<uint32,NPCType *>::iterator itr;
while(zone->npctable.size()) {