Low priority because this is easy to avoid. But it still shouldn't crash.
100% repro - call :getConnection(2) on a RailroadTrackConnection class.
TODO: test calling getConnection(1) on a connection that only has a valid getConnection(0) - I think this is possible on stub tracks?
sample crash dump: I think this is pretty clear that the intentional assert(offset == 0 || offset == 1) is the cause?
Low priority because this is easy to avoid. But it still shouldn't crash.
100% repro - call :getConnection(2) on a RailroadTrackConnection class. TODO: test calling getConnection(1) on a connection that only has a valid getConnection(0) - I think this is possible on stub tracks?
sample crash dump: I think this is pretty clear that the intentional assert(offset == 0 || offset == 1) is the cause?