nuke-haus / mapnuke

An open-source map generator for Dominions 5 and 6
http://map.nuke.haus
GNU General Public License v3.0
25 stars 14 forks source link

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

Closed Puppyguarb closed 3 weeks ago

Puppyguarb commented 7 months ago
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.