diff --git a/lib_planes/entities.lua b/lib_planes/entities.lua index 4929681..bcfb6fd 100644 --- a/lib_planes/entities.lua +++ b/lib_planes/entities.lua @@ -633,6 +633,7 @@ function airutils.logic(self) end local function damage_vehicle(self, toolcaps, ttime, damage) + damage = damage or 0 if (not toolcaps) then return end