fixes an oopsie

This commit is contained in:
LetterJay
2017-05-29 01:25:02 -05:00
parent 745437e0eb
commit e0fab7fa5e
+8 -4
View File
@@ -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()