From 3e7d4d1d6b8b6d201dd7709d60b5b590aba0d97a Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Wed, 24 Feb 2021 02:52:15 -0500 Subject: [PATCH] We want GetEncounterName here instead --- zone/entity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/entity.cpp b/zone/entity.cpp index 4bf59ddf0..d9f6c591f 100644 --- a/zone/entity.cpp +++ b/zone/entity.cpp @@ -603,7 +603,7 @@ void EntityList::EncounterProcess() while (it != encounter_list.end()) { if (!it->second->Process()) { // if Process is returning false here, we probably just got called from ReloadQuests .. oh well - parse->RemoveEncounter(it->second->GetName()); + parse->RemoveEncounter(it->second->GetEncounterName()); safe_delete(it->second); free_ids.push(it->first); it = encounter_list.erase(it); @@ -2567,7 +2567,7 @@ void EntityList::RemoveAllEncounters() { auto it = encounter_list.begin(); while (it != encounter_list.end()) { - parse->RemoveEncounter(it->second->GetName()); + parse->RemoveEncounter(it->second->GetEncounterName()); safe_delete(it->second); free_ids.push(it->first); it = encounter_list.erase(it);