Fix crash when a quest adds a new quest in its update() call
This commit is contained in:
parent
01770c78db
commit
49cadf7902
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user