Merge pull request #2489 from VOREStation/aro-playerlist

Attempt to clean up player_list if an issue is found
This commit is contained in:
Spades
2017-12-12 20:11:57 -05:00
committed by GitHub
+4 -1
View File
@@ -281,9 +281,12 @@
//A list of every mob with a client
for(var/mob in player_list)
//VOREStation Edit - Trying to fix some vorestation bug.
if(!istype(mob, /mob))
crash_with("There is a null or non-mob reference inside player_list.")
player_list -= mob
crash_with("There is a null or non-mob reference inside player_list ([mob]).")
continue
//VOREStation Edit End - Trying to fix some vorestation bug.
if(get_turf(mob) in hearturfs)
mobs |= mob
continue