From 6fa7a48ba857c8324afb8809ec05a3191db49d2d Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Sun, 28 Apr 2024 15:48:13 -0400 Subject: [PATCH] ibheriewfofi0wnmfeionfm (#25294) --- code/game/machinery/portable_turret.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/portable_turret.dm b/code/game/machinery/portable_turret.dm index e95ef133f7b..65a02ec584d 100644 --- a/code/game/machinery/portable_turret.dm +++ b/code/game/machinery/portable_turret.dm @@ -531,7 +531,8 @@ GLOBAL_LIST_EMPTY(turret_icons) if(ismecha(A)) var/obj/mecha/ME = A - assess_and_assign(ME.occupant, targets, secondarytargets) + if(isliving(ME.occupant)) + assess_and_assign(ME.occupant, targets, secondarytargets) else if(istype(A, /obj/vehicle)) var/obj/vehicle/T = A