Fix a parallax runtime (#2887)

Fixes #2835.
This commit is contained in:
Lohikar
2017-07-01 21:25:14 +03:00
committed by skull132
parent 7419971a02
commit de2efd09ac
+1 -1
View File
@@ -279,5 +279,5 @@ var/list/accessible_z_levels = list("8" = 5, "9" = 10, "7" = 15, "2" = 60)
/mob/update_client_hook(atom/destination)
. = ..()
if (. && hud_used && get_turf(client.eye) == destination)
if (. && hud_used && client && get_turf(client.eye) == destination)
hud_used.update_parallax_values()