Skip to content

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
marchcain authored Jan 10, 2020
1 parent b1ae357 commit 6463802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/entities/gmod_wire_expression2/core/entity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ end
e2function number entity:stress()
if not validPhysics(this) then return 0 end
local phys = this:GetPhysicsObject()
return phys:GetStress()
return phys:GetStress() or 0
end

/******************************************************************************/
Expand Down

0 comments on commit 6463802

Please sign in to comment.