Skip to content

Commit

Permalink
Fix ghost bones not working if the model isn't cached. Fixes: wiremod…
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 committed Feb 2, 2020
1 parent 7bf9bbd commit 7b76df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/advdupe2/cl_ghost.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ local function MakeGhostsFromTable(EntTable)
GhostEntity:SetColor( Color(255, 255, 255, 150) )
GhostEntity.Phys = EntTable.PhysicsObjects[0]

if util.IsValidRagdoll(EntTable.Model) then
if EntTable.PhysicsObjects[1] then
GhostEntity:SetupBones()
local parents = {}
local angs = {}
Expand Down

0 comments on commit 7b76df3

Please sign in to comment.