Fix lua error. Fixes: #2332

This commit is contained in:
thegrb93 2022-05-21 14:23:13 -04:00 committed by GitHub
parent ef22f19b45
commit 571fd03d71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,12 +145,11 @@ function MakeWireHydraulicController( pl, Pos, Ang, model, MyEntId, const, rope
else
controller.MyId = controller:EntIndex()
const.MyCrtl = controller:EntIndex()
controller:SetConstraint( const )
controller:SetConstraint( const, rope )
controller:DeleteOnRemove( const )
end
if rope then
controller:SetRope( rope )
controller:DeleteOnRemove( rope )
end