From bafb099bc0a09964007eb8ec952da63606fa969c Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Thu, 3 Oct 2024 22:44:24 +0200 Subject: [PATCH] fix runtime flood on chat messages --- code/datums/chat_message.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/chat_message.dm b/code/datums/chat_message.dm index 16710d8c80..65296088d4 100644 --- a/code/datums/chat_message.dm +++ b/code/datums/chat_message.dm @@ -126,7 +126,7 @@ var/list/runechat_image_cache = list() // Always force it back to a pref if they have one if(ismob(target)) var/mob/M = target - if(M?.client?.prefs?.runechat_color != COLOR_BLACK) + if(M?.client?.prefs && M.client.prefs.runechat_color != COLOR_BLACK) target.chat_color = M.client.prefs.runechat_color target.chat_color_darkened = M.client.prefs.runechat_color