Commit a6dd1cb5 authored by twanvl's avatar twanvl

fix: check starting_age <= age, instead of starting_age < age. Otherwise we...

fix: check starting_age <= age, instead of starting_age < age. Otherwise we can get into an infinite loop!
parent bf2b2a2d
......@@ -331,7 +331,7 @@ void SetScriptManager::updateRecursive(deque<ToUpdate>& to_update, Age starting_
void SetScriptManager::updateToUpdate(const ToUpdate& u, deque<ToUpdate>& to_update, Age starting_age) {
Age& age = u.value->last_modified;
if (starting_age < age) return; // this value was already updated
if (starting_age <= age) return; // this value was already updated
age = starting_age; // mark as updated
Context& ctx = getContext(u.card);
bool changes = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment