From a9ec5785cd074d1cca8aafb779323fcb8816d10d Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 13 Jul 2023 03:37:19 +0200 Subject: [PATCH] [MIRROR] Fixes a runtime where deployable turrets were spawning projectiles with no source [MDB IGNORE] (#22416) * Fixes a runtime where deployable turrets were spawning projectiles with no source (#76693) ## About The Pull Request Title. ## Why It's Good For The Game Runtimes bad. ## Changelog :cl: fix: Deployable turrets no longer runtime when firing /:cl: * Fixes a runtime where deployable turrets were spawning projectiles with no source --------- Co-authored-by: nikothedude <59709059+nikothedude@users.noreply.github.com> --- code/game/objects/structures/deployable_turret.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/structures/deployable_turret.dm b/code/game/objects/structures/deployable_turret.dm index 3df0efd1eec..0e810526bdc 100644 --- a/code/game/objects/structures/deployable_turret.dm +++ b/code/game/objects/structures/deployable_turret.dm @@ -202,7 +202,7 @@ var/turf/targets_from = get_turf(src) if(QDELETED(target)) target = target_turf - var/obj/projectile/projectile_to_fire = new projectile_type + var/obj/projectile/projectile_to_fire = new projectile_type(targets_from) playsound(src, firesound, 75, TRUE) projectile_to_fire.preparePixelProjectile(target, targets_from) projectile_to_fire.firer = user