From d9b1fcc20afa503565f7d020e9587b2c9cdd8be7 Mon Sep 17 00:00:00 2001 From: ImSmileDoge Date: Tue, 19 Apr 2022 11:18:23 +0300 Subject: [PATCH] SetParent fix --- lua/entities/gmod_subway_base/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/entities/gmod_subway_base/init.lua b/lua/entities/gmod_subway_base/init.lua index 636aecb..1ef30cc 100644 --- a/lua/entities/gmod_subway_base/init.lua +++ b/lua/entities/gmod_subway_base/init.lua @@ -1126,7 +1126,7 @@ function ENT:CreateCouple(pos,ang,forward,typ) table.insert(self.JointPositions,index,x) -- Constraint bogey to the train if self.NoPhysics then - bogey:SetParent(coupler) + coupler:SetParent(self) else constraint.AdvBallsocket( self,