Fixes runtime that breaks vorepanel.

Sanity check to prevent a bug that has permanently bluescreened a mob's vorepanel twice this week.
This commit is contained in:
Verkister
2022-07-03 17:31:50 +03:00
committed by GitHub
parent acb9521a80
commit 9522e76953
@@ -91,7 +91,7 @@
preference = list(preference)
for(var/p in preference)
var/datum/client_preference/cp = get_client_preference(p)
if(!cp || !(cp.key in prefs.preferences_enabled))
if(!prefs || !cp || !(cp.key in prefs.preferences_enabled))
return FALSE
return TRUE