From 8980dc7463a4fcfc5ac6d4faf9471865c3ba3b5e Mon Sep 17 00:00:00 2001 From: AmShegars <88627712+AmShegars@users.noreply.github.com> Date: Mon, 19 Feb 2024 10:27:01 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B2=D0=BE=D0=B7?= =?UTF-8?q?=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=84=D0=BE=D0=BA?= =?UTF-8?q?=D1=83=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/modules/mob/living/living.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index a8a167b4000..2f45008c35b 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -675,7 +675,9 @@ default behaviour is: if(C.passengers_ammount > 1) var/choose var/choosed_place = input(usr, "Choose passenger place which you want unload.", name, choose) as null|anything in C.passenger_places - C.forced_leave_passenger(choosed_place , null , C) + if(choosed_place == null) + return FALSE + C.forced_leave_passenger(choosed_place, null , C) else C.forced_leave_passenger(null , MECH_DROP_ANY_PASSENGER , C) return TRUE