Fix instances of improper client checking for mobs in player_list resulting in runtimes(possibly!)

This commit is contained in:
D3athrow
2015-02-11 00:06:38 -06:00
parent 33e5530887
commit cf430d936c
13 changed files with 27 additions and 23 deletions

View File

@@ -165,7 +165,7 @@ You must kill it all while minimizing the damage to the station."}
aiPlayer.set_zeroth_law(law)
aiPlayer << "Laws Updated: [law]"
for(var/mob/M in player_list)
if(!istype(M,/mob/new_player))
if(!istype(M,/mob/new_player) && M.client)
M << sound('sound/AI/blob_confirmed.ogg')
var/T = M.loc
if((istype(T, /turf/space)) || ((istype(T, /turf)) && (M.z!=1)))