Some more preferences setup runtimes (#7884)

This commit is contained in:
Raeschen
2024-03-04 13:22:53 +01:00
committed by GitHub
parent 7ce67815ed
commit 245f0d2c3b
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@
preference = list(preference)
for(var/p in preference)
var/datum/client_preference/cp = get_client_preference(p)
if(!prefs || !cp || !(cp.key in prefs.preferences_enabled))
if(!prefs || !cp || !istype(cp, /datum/client_preference) || !(cp.key in prefs.preferences_enabled))
return FALSE
return TRUE