Issue where not having a global npc quest file may cause the server to crash on bootup

This commit is contained in:
Alex 2013-02-18 09:01:49 -08:00
parent c9d4816a88
commit aa20e5b5e3

View File

@ -180,7 +180,7 @@ void QuestParserCollection::EventNPC(QuestEventID evt, NPC* npc, Mob *init, std:
}
// K, lets also parse templates/global_npc.pl
if(_global_npc_quest_status != QuestUnloaded) {
if(_global_npc_quest_status != QuestUnloaded && _global_npc_quest_status != QuestFailedToLoad) {
std::map<uint32, QuestInterface*>::iterator qiter = _interfaces.find(_global_npc_quest_status);
qiter->second->EventGlobalNPC(evt, npc, init, data, extra_data);
} else {