diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-11-27 21:29:53 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-11-27 21:29:53 +1100 |
commit | e437282d5cf33b01b967151a56c70d8d1603f375 (patch) | |
tree | b0cfcf0599ede328e42c3cfe6e7003fc303734ae | |
parent | 56c99c086fd14ee1b1131cb7df18c1b55ede5519 (diff) |
Update StarQuestManager.cpp
-rw-r--r-- | source/game/StarQuestManager.cpp | 6 |
1 files 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); } } |