From 0aa3e58130435b5606a992e84dbe35a8cf8d4df6 Mon Sep 17 00:00:00 2001 From: Aleksej Komarov Date: Thu, 17 Sep 2020 21:07:44 +0300 Subject: [PATCH] Fix runtime when NPC tries to interact with tgui (#53776) Monki tries to open a door with a wire panel open, it tries to open a tgui for him, and uh oh, there is no client on user. --- code/modules/tgui/tgui.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/tgui/tgui.dm b/code/modules/tgui/tgui.dm index c971f34d88a..cd425f6f5e4 100644 --- a/code/modules/tgui/tgui.dm +++ b/code/modules/tgui/tgui.dm @@ -50,7 +50,7 @@ */ /datum/tgui/New(mob/user, datum/src_object, interface, title, ui_x, ui_y) log_tgui(user, - "new [interface] fancy [user.client.prefs.tgui_fancy]", + "new [interface] fancy [user?.client?.prefs.tgui_fancy]", src_object = src_object) src.user = user src.src_object = src_object