Skip to content

Commit

Permalink
Protect from nulls in ui_itneract
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerfulBacon committed Apr 8, 2024
1 parent af4b579 commit 6508273
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6508273

Please sign in to comment.