From ca98ac5151f850e1a425f1d60790af54e6ebf1f1 Mon Sep 17 00:00:00 2001 From: Aranclanos Date: Thu, 13 Aug 2015 21:40:00 -0300 Subject: [PATCH] The staff of change projectile will qdel the mob instead of manually deleting it. Added a warning for when the mob controller removes a null from the mob list. --- code/controllers/subsystem/mobs.dm | 1 + code/modules/projectiles/projectile/magic.dm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/code/controllers/subsystem/mobs.dm b/code/controllers/subsystem/mobs.dm index 9bae03b30a4..41d9d3fb05c 100644 --- a/code/controllers/subsystem/mobs.dm +++ b/code/controllers/subsystem/mobs.dm @@ -19,4 +19,5 @@ var/datum/subsystem/mobs/SSmob if(thing) thing:Life(seconds) continue + WARNING("Found a null in the mob list. Removing.") mob_list.Remove(thing) \ No newline at end of file diff --git a/code/modules/projectiles/projectile/magic.dm b/code/modules/projectiles/projectile/magic.dm index bbe10e02af3..5c891b9fae0 100644 --- a/code/modules/projectiles/projectile/magic.dm +++ b/code/modules/projectiles/projectile/magic.dm @@ -243,7 +243,7 @@ new_mob << "Your form morphs into that of a [randomize]." - del(M) + qdel(M) return new_mob /obj/item/projectile/magic/animate