Skip to content

Commit

Permalink
🐞 fix: Setting driver's flex weight correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenkakuHiragana committed Jan 11, 2025
1 parent 7f91763 commit 941ba63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/entities/npc_decentvehicle/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ function ENT:AttachModel()
self:SetNWAngle("Ang", seatang)
self:SetSequence(anim)

for i = 1, self:GetFlexNum() do
for i = 0, self:GetFlexNum() - 1 do
self:SetFlexWeight(i, self:GetFlexBounds(i))
end
end)
Expand Down

0 comments on commit 941ba63

Please sign in to comment.