Fixes runtime that breaks vorepanel

Sanity check to prevent a bug that has permanently bluescreened a mob's vorepanel twice this week on downstream.
This commit is contained in:
Verkister
2022-07-03 17:53:44 +03:00
committed by GitHub
parent 456d3bbc56
commit bcc99fec21
@@ -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