First attempt at fixing zone shutdown crashes. (Mob timer processing accessing released resources.)

This commit is contained in:
Uleat
2014-08-24 05:42:43 -04:00
parent 16d47a2c47
commit 52ae78709b
5 changed files with 48 additions and 5 deletions
+2 -3
View File
@@ -600,9 +600,8 @@ QuestInterface *QuestParserCollection::GetQIByNPCQuest(uint32 npcid, std::string
}
QuestInterface *QuestParserCollection::GetQIByPlayerQuest(std::string &filename) {
if(!zone)
return nullptr;
if(!zone || !zone->IsLoaded())
return nullptr;
//first look for /quests/zone/player_v[instance_version].ext (precedence)
filename = "quests/";