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.
This commit is contained in:
Aleksej Komarov
2020-09-17 15:07:44 -03:00
committed by GitHub
parent c3ce45a849
commit 0aa3e58130
+1 -1
View File
@@ -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