mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-12 08:38:35 +00:00
Fix ReloadQuest on Shutdown crash related to encounters
Basically, EntityList::RemoveAllEncounters is called before ReloadQuests resulting in stale pointers in the lua_encounters map. We just have to remove the entry from the map.
This commit is contained in:
@@ -71,6 +71,7 @@ public:
|
||||
virtual std::string GetVar(std::string name);
|
||||
virtual void Init();
|
||||
virtual void ReloadQuests();
|
||||
virtual void RemoveEncounter(const std::string &name);
|
||||
virtual uint32 GetIdentifier() { return 0xb0712acc; }
|
||||
|
||||
virtual int DispatchEventNPC(QuestEventID evt, NPC* npc, Mob *init, std::string data, uint32 extra_data,
|
||||
|
||||
Reference in New Issue
Block a user