Merge pull request #34767 from AutomaticFrenzy/patch/replace-random-law

Fix replace_random_law runtime
This commit is contained in:
oranges
2018-01-23 20:41:45 +13:00
committed by CitadelStationBot
parent 5e1ff26276
commit 58855df5dd
2 changed files with 3 additions and 6 deletions

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))