Closed originalfoo closed 2 years ago
bump
Added guard against null
segment Info
and Info.m_lanes
based on vanilla CSL code.
@krzychu124 || @kianzarrin can you do a quick check of https://github.com/CitiesSkylinesMods/TMPE/pull/1496/commits/cc2dc85b834448b8c80b03367f964df877e95bef just to make sure no issues before I merge?
Oh sorry I forgot to look at this.
We should generally use GetSegmentLaneIndexesAndIds()
to avoid such mistakes. but that is out of scope of this PR
@kianzarrin that's tracked in https://github.com/CitiesSkylinesMods/TMPE/issues/1489
Another batch.
CountLanes()
extensionGetSortedLanes()
was being used just to count lanes so created an extension which does that more optimallyGetSortedLanes()
call sites