Fix replace_random_law runtime

This commit is contained in:
Tad Hardesty
2018-01-22 16:46:46 -08:00
parent 090a02752b
commit 1be60a2cd3
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -295,7 +295,7 @@
supplied[number + 1] = law
/datum/ai_laws/proc/replace_random_law(law,groups)
var/replaceable_groups = list(LAW_ZEROTH = 0,LAW_ION = 0,LAW_SUPPLIED = 0,LAW_INHERENT = 0)
var/replaceable_groups = list()
if(zeroth && (LAW_ZEROTH in groups))
replaceable_groups[LAW_ZEROTH] = 1
if(ion.len && (LAW_ION in groups))