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) {
|
for (auto& q : m_quests.values()) {
|
||||||
if (questValidOnServer(q.second))
|
if (questValidOnServer(q))
|
||||||
q.second->update(dt);
|
q->update(dt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user