From 62053ce63d57542af33b7c9b01be4c2cd75768e2 Mon Sep 17 00:00:00 2001 From: Neerti Date: Sun, 28 Aug 2016 22:03:45 -0400 Subject: [PATCH] Fixes check_rights() runtime. --- code/modules/admin/holder2.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm index 9ee3d10b6b..5742b74aa4 100644 --- a/code/modules/admin/holder2.dm +++ b/code/modules/admin/holder2.dm @@ -64,6 +64,8 @@ NOTE: It checks usr by default. Supply the "user" argument if you wish to check C = M.client if(!C) return FALSE + if(!(istype(C, /client))) // If we still didn't find a client, something is wrong. + return FALSE if(!C.holder) if(show_msg) C << "Error: You are not an admin."