From d03daf4d45d0ad23ed9584a93217ae422ac4d427 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Thu, 8 Feb 2024 13:54:43 -0300 Subject: [PATCH] fix damage starting as nil --- lib_planes/entities.lua | 1 + 1 file changed, 1 insertion(+) 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