From 650827384df56837d7e7ca02dd8a6cadb161ba36 Mon Sep 17 00:00:00 2001 From: PowerfulBacon <26465327+PowerfulBacon@users.noreply.github.com> Date: Mon, 8 Apr 2024 18:55:42 +0100 Subject: [PATCH] Protect from nulls in ui_itneract --- .../antagonists/traitor/directives/deploy_beacon/beacon.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/antagonists/traitor/directives/deploy_beacon/beacon.dm b/code/modules/antagonists/traitor/directives/deploy_beacon/beacon.dm index cf7dec303645c..7259e9580dee9 100644 --- a/code/modules/antagonists/traitor/directives/deploy_beacon/beacon.dm +++ b/code/modules/antagonists/traitor/directives/deploy_beacon/beacon.dm @@ -93,7 +93,7 @@ /obj/structure/uplink_beacon/ui_interact(mob/user, datum/tgui/ui) // You must be something to interact with this - if (!user.mind || !user.mind.has_antag_datum(/datum/antagonist)) + if (!user || !user.mind || !user.mind.has_antag_datum(/datum/antagonist)) return ui = SStgui.try_update_ui(user, src, ui) if(!ui)