diff --git a/lua/entities/gmod_wire_expression2/core/entity.lua b/lua/entities/gmod_wire_expression2/core/entity.lua index bb9704328f..35ab046e93 100644 --- a/lua/entities/gmod_wire_expression2/core/entity.lua +++ b/lua/entities/gmod_wire_expression2/core/entity.lua @@ -347,19 +347,19 @@ end e2function number entity:volume() if not validPhysics(this) then return 0 end local phys = this:GetPhysicsObject() - return phys:GetVolume() + return phys:GetVolume() or 0 end e2function number entity:surfaceArea() if not validPhysics(this) then return 0 end local phys = this:GetPhysicsObject() - return phys:GetSurfaceArea() + return phys:GetSurfaceArea() or 0 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 /******************************************************************************/