Give stacktrace on spawning mobs in nullspace with simple helper (#22849)

This will help track down the root causes of this and resolve them
This commit is contained in:
oranges
2017-01-11 13:02:44 +13:00
committed by GitHub
parent 3661be0f2e
commit d60c44aefe
+2 -2
View File
@@ -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)