Skip to content

Failed to collect intersections | attempt to index local 'to3' (a nil value) #2

@Slluxx

Description

@Slluxx

After some time working on a layout, the tool doesnt allow me to edit an intersection anymore and just yeets me into the simulation tab.

Looks like the intersection "works" but i just cant access the edit menu.
image

image

This piece of code seems to be the issue:

    -- FlatPolyShape.lua
    while not p1:closerToThan(self.aabb.center, 400) do
      print("2nd while: " .. i)
      i = i + 40
      if i > size then break end
      p1 = lanePoints[i - 1]
    end

Specifically the +40, which is outside of the length of lanePoints

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions