fix damage starting as nil

This commit is contained in:
Alexsandro Percy 2024-02-08 13:54:43 -03:00 committed by GitHub
parent 8dcac84155
commit d03daf4d45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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