From e437282d5cf33b01b967151a56c70d8d1603f375 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 27 Nov 2024 21:29:53 +1100 Subject: [PATCH] Update StarQuestManager.cpp --- source/game/StarQuestManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/game/StarQuestManager.cpp b/source/game/StarQuestManager.cpp index 4dbc652..2aa22fb 100644 --- a/source/game/StarQuestManager.cpp +++ b/source/game/StarQuestManager.cpp @@ -412,9 +412,9 @@ void QuestManager::update(float dt) { for (auto& questId : expiredQuests) m_quests.remove(questId); - for (auto& q : m_quests) { - if (questValidOnServer(q.second)) - q.second->update(dt); + for (auto& q : m_quests.values()) { + if (questValidOnServer(q)) + q->update(dt); } }