From c1f91fd0e65e12816833decda28f1e4c70d61654 Mon Sep 17 00:00:00 2001 From: dutchie031 Date: Wed, 28 May 2025 00:25:16 +0200 Subject: [PATCH] fixed for static train carts having no category? --- classes/spearhead_base.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/spearhead_base.lua b/classes/spearhead_base.lua index 5d45616..75481eb 100644 --- a/classes/spearhead_base.lua +++ b/classes/spearhead_base.lua @@ -530,7 +530,7 @@ do -- INIT DCS_UTIL dead = group.dead } - if string.lower(unit.category) == "planes" then + if unit and unit.category and string.lower(unit.category) == "planes" then staticObj.livery_id = unit.livery_id end