From a60dcf473bd5f2ba0ca347b5934ab150028b1273 Mon Sep 17 00:00:00 2001 From: Furlucis Date: Tue, 11 Jun 2013 03:18:03 -0400 Subject: [PATCH] Fixed a runtime error where one thing would sometimes try to handle an empty list. Some chance that will still make a jungle map fail to work right, though. Signed-off-by: Furlucis --- code/WorkInProgress/Cael_Aislinn/Jungle/jungle.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/WorkInProgress/Cael_Aislinn/Jungle/jungle.dm b/code/WorkInProgress/Cael_Aislinn/Jungle/jungle.dm index c2ae804a5d2..72fe022657a 100644 --- a/code/WorkInProgress/Cael_Aislinn/Jungle/jungle.dm +++ b/code/WorkInProgress/Cael_Aislinn/Jungle/jungle.dm @@ -37,6 +37,9 @@ var/list/waypoints = list() for(var/obj/effect/landmark/temple/destination/T in world) waypoints.Add(T) + if(!T) + return + else continue var/obj/effect/landmark/temple/destination/dest_temple = pick(waypoints) dest_temple.init()