fixed for static train carts having no category?

This commit is contained in:
2025-05-28 00:25:16 +02:00
parent 90c8d113fd
commit c1f91fd0e6
+1 -1
View File
@@ -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