Fixes an obscure runtime which happens when there are no human players and an Ion-Storm occurs.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4771 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
elly1989@rocketmail.com
2012-09-29 06:15:38 +00:00
parent 999cc84c1c
commit dde2c51e73
+4 -1
View File
@@ -433,7 +433,10 @@ Would like to add a law like "Law x is _______" where x = a number, and _____ is
var/list/pos_crew = list()
for(var/mob/living/carbon/human/pos in player_list)
pos_crew += pos.real_name
crew = pick(pos_crew)
if(pos_crew.len)
crew = pick(pos_crew)
else
crew = "Any Human"
switch(rand(1,14))
if(1)
M << "\red THERE ARE [amount] [who2] ON THE STATION...LAWS UPDATED"