Skip to content

Commit

Permalink
19254: Fixes bug in weave opcode where memory was reportedly unique w…
Browse files Browse the repository at this point in the history
…hen it was not (which could cause a crash) (#72)
  • Loading branch information
howsohazard authored Feb 8, 2024
1 parent c18d7f2 commit fe3a382
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Amalgam/interpreter/InterpreterOpcodesTransformations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,13 @@ EvaluableNodeReference Interpreter::InterpretNode_ENT_WEAVE(EvaluableNode *en, b
}
}

//ensure that uniqueness attribute is correct
for(auto &list : lists)
woven_list.UpdatePropertiesBasedOnAttachedNode(list);

//because each list can be unique but from the same source, still need to update all flags in case of cycle
EvaluableNodeManager::UpdateFlagsForNodeTree(woven_list);

return woven_list;
}

Expand Down

0 comments on commit fe3a382

Please sign in to comment.