From 4aca9a152993bbbd3167999628b6d41664478184 Mon Sep 17 00:00:00 2001 From: phil235 Date: Sun, 14 Feb 2016 23:49:25 +0100 Subject: [PATCH] Fixes spawn_atom() runtime. --- code/modules/admin/admin.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 0672ba1437f..032be33b187 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -620,7 +620,8 @@ var/global/BSACooldown = 0 return var/chosen = pick_closest_path(object) - + if(!chosen) + return if(ispath(chosen,/turf)) var/turf/T = get_turf(usr.loc) T.ChangeTurf(chosen)