From 5cebb40123d30e2acea05647d8deed0baddb24f8 Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Sun, 23 Dec 2012 19:35:20 +0000 Subject: [PATCH] - Fixed a runtime that happens when you try to add a new admin via the permissions panel. Adding admins through that panel will now work again. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5382 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/admin/topic.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 0a6b45a48a0..8408edd8dfb 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -147,7 +147,9 @@ else new_rank = input("Please select a rank", "New rank", null, null) as null|anything in list("Game Master","Game Admin", "Trial Admin", "Admin Observer","*New Rank*") - var/rights = D.rights + var/rights = 0 + if(D) + rights = D.rights switch(new_rank) if(null,"") return if("*New Rank*")