From bd72434b0b307a5216a58243c9834276f1351ddc Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Sat, 10 Jun 2017 03:13:23 -0400 Subject: [PATCH] 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. --- code/_helpers/game.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/_helpers/game.dm b/code/_helpers/game.dm index d7ee78ff8fe..fb99da896f3 100644 --- a/code/_helpers/game.dm +++ b/code/_helpers/game.dm @@ -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