nuke-haus/mapnuke

Generating a new map while on the cave layer causes a crash.

Closed this issue · 0 comments

NullReferenceException: Object reference not set to an instance of an object

ConnectionMarker.RecalculatePoly () (at <5407c3f0a0aa4de383b2dff7feb5c6a1>:0)
DefaultArtStyle+<Generate>d__5.MoveNext () (at <5407c3f0a0aa4de383b2dff7feb5c6a1>:0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <3a69dc1755714a688e272fb29550dc99>:0)

Lazy fix would probably be just check player's layer, if they're on the cave layer, shove em back to the proper layer.