From cf27d0ed2109f8be9baaf01e08c0354777de05f3 Mon Sep 17 00:00:00 2001 From: Atemo Date: Thu, 23 Sep 2021 23:38:17 +0200 Subject: [PATCH] Fixed an issue in the quest system (#6264) The spawn timer of permanent monster was still INVALID_TIMER when the quest_update_objective function was called so the check failed --- src/map/quest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/quest.cpp b/src/map/quest.cpp index 7fa708ede4..59d7e7b31f 100644 --- a/src/map/quest.cpp +++ b/src/map/quest.cpp @@ -729,7 +729,7 @@ void quest_update_objective(struct map_session_data *sd, struct mob_data* md) objective_check++; if (qi->objectives[j]->element == ELE_ALL || qi->objectives[j]->element == md->status.def_ele) objective_check++; - if (qi->objectives[j]->mapid < 0 || (qi->objectives[j]->mapid == sd->bl.m && md->spawn_timer != INVALID_TIMER)) + if (qi->objectives[j]->mapid < 0 || (qi->objectives[j]->mapid == sd->bl.m && md->spawn != nullptr)) objective_check++; }