From d7c8a05eb0988f982c245a234be164c2ec18734a Mon Sep 17 00:00:00 2001 From: sarcoph <83266791+sarcoph@users.noreply.github.com> Date: Wed, 4 May 2022 14:03:47 -0800 Subject: [PATCH] check if there is a user for pregnancy test for admin command calls --- hyperstation/code/obj/pregnancytester.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hyperstation/code/obj/pregnancytester.dm b/hyperstation/code/obj/pregnancytester.dm index 51e4786c4..f8c12ab55 100644 --- a/hyperstation/code/obj/pregnancytester.dm +++ b/hyperstation/code/obj/pregnancytester.dm @@ -36,4 +36,5 @@ icon_state = result_text name = "[results] preganancy test" status = TRUE - to_chat(user, "You use the pregnancy test, the display reads [results]!") \ No newline at end of file + if(user) + to_chat(user, "You use the pregnancy test, the display reads [results]!") \ No newline at end of file