Client check

This commit is contained in:
AffectedArc07
2021-10-09 21:23:40 +01:00
parent c1e6ea494d
commit 3ff24ea7e1
+2
View File
@@ -416,6 +416,8 @@ SUBSYSTEM_DEF(ticker)
to_chat(M, "Captainship not forced on anyone.")
/datum/controller/subsystem/ticker/proc/equip_cuis(mob/living/carbon/human/H)
if(!H.client)
return // If they are spawning without a client (somehow), they *cant* have a CUI list
for(var/datum/custom_user_item/cui in H.client.cui_entries)
// Skip items with invalid character names
if((cui.characer_name != H.real_name) && !cui.all_characters_allowed)