[Bug Fix] Fix infinite loop in QuestManager::stoptimer() (#4703)

This commit is contained in:
zimp-wow 2025-02-20 18:52:08 -06:00 committed by GitHub
parent 4d73b7d641
commit 94e1b4edfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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; });