From e0fab7fa5ec20d7375bae62ff8e593964e9db63b Mon Sep 17 00:00:00 2001 From: LetterJay Date: Mon, 29 May 2017 01:25:02 -0500 Subject: [PATCH] fixes an oopsie --- code/modules/jobs/access.dm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/code/modules/jobs/access.dm b/code/modules/jobs/access.dm index bf554f85a9..527b6ff736 100644 --- a/code/modules/jobs/access.dm +++ b/code/modules/jobs/access.dm @@ -149,10 +149,14 @@ GLOBAL_VAR_CONST(access_away_generic4, 208) //Call this before using req_access or req_one_access directly /obj/proc/gen_access() //These generations have been moved out of /obj/New() because they were slowing down the creation of objects that never even used the access system. - for(var/a in text2access(req_access_txt)) - req_access += a - for(var/b in text2access(req_one_access_txt)) - req_one_access += b + if(!req_access) + req_access = list() + for(var/a in text2access(req_access_txt)) + req_access += a + if(!req_one_access) + req_one_access = list() + for(var/b in text2access(req_one_access_txt)) + req_one_access += b /obj/proc/check_access(obj/item/I) gen_access()