From 6f504014b3c80c91cdda3a2fe1a1ef9a2d302615 Mon Sep 17 00:00:00 2001 From: xxalpha Date: Sun, 13 Mar 2016 01:51:10 +0000 Subject: [PATCH] fix template loading runtimes --- code/modules/awaymissions/zlevel.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/awaymissions/zlevel.dm b/code/modules/awaymissions/zlevel.dm index aba9d98157a..33db21349d8 100644 --- a/code/modules/awaymissions/zlevel.dm +++ b/code/modules/awaymissions/zlevel.dm @@ -107,12 +107,12 @@ var/global/list/potentialRandomZlevels = generateMapList(filename = "config/away /obj/effect/ruin_loader/proc/Load(list/potentialRuins = space_ruins_templates, datum/map_template/template = null) var/list/possible_ruins = list() for(var/A in potentialRuins) - var/datum/map_template/T = A + var/datum/map_template/T = potentialRuins[A] if(!T.loaded) possible_ruins += T world << "Loading ruins..." if(!template && possible_ruins.len) - template = possible_ruins[pick(possible_ruins)] + template = safepick(possible_ruins) if(!template) world << "No ruins found." return