mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
fix damage starting as nil
This commit is contained in:
parent
8dcac84155
commit
d03daf4d45
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue