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

This commit is contained in:
Uleat committed 2014-08-24 05:42:43 -04:00
1 parent 16d47a2c47
commit 52ae78709b
5 files changed
+48 -5

No files matched your search

+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/";