Fixes Runtime in vchat_client.dm,85: Cannot execute null.is preference enabled (#7557)

This commit is contained in:
Atermonera
2020-08-24 21:30:48 -07:00
committed by VirgoBot
parent 806d116ca1
commit 3669657656

View File

@@ -82,7 +82,7 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("data/iconCache.sav")) //Cache of ic
become_broken()
return FALSE
if(!owner.is_preference_enabled(/datum/client_preference/vchat_enable))
if(!owner?.is_preference_enabled(/datum/client_preference/vchat_enable))
become_broken()
return FALSE