Bug Closed · Resolved

Dialog ForEach reaches out of bound index

#10127 opened by CarrotChomps 3 days ago

CarrotChompsreported this bug

A ForEach iterating along a LIST of MAPs causes it to iterate more than it should. To reproduce, create a LIST variable, create a MAP variable, populate the map with 4 key value pairs. Add 2 instances of the MAP to the LIST. Run a dialog with a ForEach body of text targeting the LIST of Maps.

Expected: The ForEach prints 2 body elements. Actual: The ForEach prints 8 body elements (4 per each map; as if it iterates fro each key value pair)

The LIST variable reports a size of 2 which makes me think this is a bug.

Link to Mythic Mobs Discord: https://discord.com/channels/213109157983813633/433846386166071306/1566452571231748156

Sign in to join the discussion.