mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Cheap hack fix for get_blahblah_fast breaking due to null mobs in player_list
Just have it clean them on nulls. This check should be fast, the list isn't that long, and it checks other stuff anyway.
This commit is contained in:
@@ -281,6 +281,9 @@
|
||||
|
||||
//A list of every mob with a client
|
||||
for(var/mob in player_list)
|
||||
if(isnull(mob)) //VOREStation Add - Fix for a weird bug with nulls in this list
|
||||
player_list -= mob //VOREStation Add
|
||||
continue //VOREStation Add
|
||||
if(get_turf(mob) in hearturfs)
|
||||
mobs |= mob
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user