From d60c44aefe696f0e63f019f45ebbee740f321e29 Mon Sep 17 00:00:00 2001 From: oranges Date: Wed, 11 Jan 2017 13:02:44 +1300 Subject: [PATCH] Give stacktrace on spawning mobs in nullspace with simple helper (#22849) This will help track down the root causes of this and resolve them --- code/__HELPERS/mobs.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/__HELPERS/mobs.dm b/code/__HELPERS/mobs.dm index 90aefee507f..7b60ab9cbdb 100644 --- a/code/__HELPERS/mobs.dm +++ b/code/__HELPERS/mobs.dm @@ -346,7 +346,7 @@ Proc for attack log creation, because really why not /proc/spawn_atom_to_turf(spawn_type, target, amount, admin_spawn=FALSE) var/turf/T = get_turf(target) if(!T) - throw EXCEPTION("attempt to spawn atom type: [spawn_type] in nullspace") + CRASH("attempt to spawn atom type: [spawn_type] in nullspace") for(var/j in 1 to amount) var/atom/X = new spawn_type(T) @@ -356,7 +356,7 @@ Proc for attack log creation, because really why not var/turf/T = get_turf(target) var/step_count = 0 if(!T) - throw EXCEPTION("attempt to spawn atom type: [spawn_type] in nullspace") + CRASH("attempt to spawn atom type: [spawn_type] in nullspace") for(var/j in 1 to amount) var/atom/movable/X = new spawn_type(T)