From 7e35fc9660ad9a6fff040732578d63ddeed1be40 Mon Sep 17 00:00:00 2001 From: joep van der velden Date: Fri, 31 Jul 2020 10:42:27 +0200 Subject: [PATCH] Fixes the runtime warning where secbots from spawning in null space --- code/modules/mob/living/simple_animal/bot/construction.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/bot/construction.dm b/code/modules/mob/living/simple_animal/bot/construction.dm index 024e2b5f304..d7e69c25c16 100644 --- a/code/modules/mob/living/simple_animal/bot/construction.dm +++ b/code/modules/mob/living/simple_animal/bot/construction.dm @@ -474,7 +474,7 @@ return build_step++ to_chat(user, "You complete the Securitron! Beep boop.") - var/mob/living/simple_animal/bot/secbot/S = new /mob/living/simple_animal/bot/secbot + var/mob/living/simple_animal/bot/secbot/S = new /mob/living/simple_animal/bot/secbot(loc) S.forceMove(get_turf(src)) S.name = created_name S.robot_arm = robot_arm @@ -512,7 +512,7 @@ //General Griefsky else if((istype(I, /obj/item/wrench)) && (build_step == 3)) - var/obj/item/griefsky_assembly/A = new /obj/item/griefsky_assembly + var/obj/item/griefsky_assembly/A = new /obj/item/griefsky_assembly(loc) user.put_in_hands(A) to_chat(user, "You adjust the arm slots for extra weapons!.") user.unEquip(src, 1)