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