Fixes a runtime during roundstart (#9032)

When mobs spawn for the first time, they call Move()
Move then changes the icon state of the up_hint, however, up_hint is at this point not initialized, so it runtimes instead
This commit is contained in:
Matt Atlas
2020-06-04 20:49:52 +02:00
committed by GitHub
parent 26f5faea80
commit 88a051f78f

View File

@@ -147,7 +147,8 @@
if (client)
var/turf/B = GetAbove(T)
up_hint.icon_state = "uphint[(B ? !!B.is_hole : 0)]"
if(up_hint)
up_hint.icon_state = "uphint[(B ? !!B.is_hole : 0)]"
if (is_noisy && !stat && !lying)
if ((x == last_x && y == last_y) || !footsound)