[Bug Fix] Fix Mercenary Encounter Crash (#4509)

This commit is contained in:
Alex King 2024-10-11 23:00:09 -04:00 committed by GitHub
parent e06b0c4b0c
commit c873fe5a22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,8 +90,6 @@ void QuestManager::Process() {
while (cur != end) {
if (cur->Timer_.Enabled() && cur->Timer_.Check()) {
if (cur->mob) {
parse->EventMob(EVENT_TIMER, cur->mob, nullptr, [&]() { return cur->name; }, 0);
if (cur->mob->IsEncounter()) {
parse->EventEncounter(
EVENT_TIMER,
@ -100,6 +98,8 @@ void QuestManager::Process() {
0,
nullptr
);
} else {
parse->EventMob(EVENT_TIMER, cur->mob, nullptr, [&]() { return cur->name; }, 0);
}
//we MUST reset our iterator since the quest could have removed/added any