CitiesSkylinesMods / HideCrosswalks

MIT License
8 stars 3 forks source link

Check node is not null #13

Closed originalfoo closed 4 years ago

originalfoo commented 4 years ago

Will send a PR to fix, just logging issue here.

If a network does not load correctly, it can cause the node to be null:

https://github.com/CitiesSkylinesMods/HideCrosswalks/blob/14b3c0d405c890d60798539b7fc1a397781b2e06/HideTMPECrosswalks/Utils/PrefabUtils.cs#L32-L33

@krzychu124 spotted the error while testing some stuff for fps booster mod:

image

btw, that segment was trolleybus vanilla asset, if that matters