[Bug Fix] Fix missing timer_name check on Mob::StopTimer (#4840)

This commit is contained in:
zimp-wow 2025-04-03 19:40:13 -05:00 committed by GitHub
parent 5babc864b9
commit 115df81400
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -699,7 +699,7 @@ void QuestManager::stoptimer(const std::string& timer_name, Mob* m)
}
for (auto e = QTimerList.begin(); e != QTimerList.end(); ++e) {
if (e->mob && e->mob == m) {
if (e->mob && e->mob == m && e->name == timer_name) {
parse->EventMob(EVENT_TIMER_STOP, m, nullptr, [&]() { return timer_name; });
QTimerList.erase(e);