From 4efd3cc87ab7ce840154522e88d032c1560b33f8 Mon Sep 17 00:00:00 2001 From: kosmik641 Date: Sat, 20 Dec 2025 19:20:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=BF=D0=BE=D0=BB=D0=BD=D0=B8?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D0=B5=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D0=BA=D0=B8=20=D0=BD=D0=B0=20=D0=BD=D0=B0?= =?UTF-8?q?=D0=BB=D0=B8=D1=87=D0=B8=D0=B5=20=D1=82=D0=B5=D0=BB=D0=B5=D0=B6?= =?UTF-8?q?=D0=B5=D0=BA=20=D0=B2=20Metrostroi.RerailTrain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/metrostroi/sh_rerail.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/metrostroi/sh_rerail.lua b/lua/metrostroi/sh_rerail.lua index 0e8bf06..e4bf07b 100644 --- a/lua/metrostroi/sh_rerail.lua +++ b/lua/metrostroi/sh_rerail.lua @@ -217,6 +217,7 @@ function Metrostroi.RerailTrain(train) --Safety checks if not IsValid(train) or train.SubwayTrain == nil then return false end if train.NoPhysics or not IsValid(train:GetPhysicsObject()) then return false end + if not IsValid(train.FrontBogey) or not IsValid(train.RearBogey) then return false end if timer.Exists("metrostroi_rerailer_solid_reset_"..train:EntIndex()) then return false end --[[ --Trace down to get the track