Fix crash when a quest adds a new quest in its update() call

This commit is contained in:
Kae 2024-11-05 10:40:32 +11:00
parent 01770c78db
commit 49cadf7902

View File

@ -408,9 +408,9 @@ void QuestManager::update(float dt) {
}
}
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);
}
}