From 94e1b4edfac97e3a0d90eac67a3af0f08b19217f Mon Sep 17 00:00:00 2001 From: zimp-wow <66187107+zimp-wow@users.noreply.github.com> Date: Thu, 20 Feb 2025 18:52:08 -0600 Subject: [PATCH] [Bug Fix] Fix infinite loop in QuestManager::stoptimer() (#4703) --- zone/questmgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/questmgr.cpp b/zone/questmgr.cpp index 05cbdf4f2..727b1c2bc 100644 --- a/zone/questmgr.cpp +++ b/zone/questmgr.cpp @@ -680,7 +680,7 @@ void QuestManager::stoptimer(const std::string& timer_name, Mob* m) return; } - for (auto e = QTimerList.begin(); e != QTimerList.end();) { + for (auto e = QTimerList.begin(); e != QTimerList.end(); ++e) { if (e->mob && e->mob == m) { parse->EventMob(EVENT_TIMER_STOP, m, nullptr, [&]() { return timer_name; });