This commit is contained in:
Pax1601
2023-09-10 17:26:33 +02:00
parent 7af2162b50
commit bd894704b1
223 changed files with 2916 additions and 33894 deletions

View File

@@ -1,6 +1,6 @@
local version = "v0.4.4-alpha"
local debug = true -- True enables debug printing using DCS messages
local debug = false -- True enables debug printing using DCS messages
-- .dll related variables
Olympus.OlympusDLL = nil
@@ -478,7 +478,7 @@ function Olympus.generateAirUnitsTable(units)
-- Define the loadout
if payload == nil then
if loadout and loadout ~= "" and Olympus.unitPayloads[unit.unitType][loadout] then
if loadout and loadout ~= "" and Olympus.unitPayloads[unit.unitType] and Olympus.unitPayloads[unit.unitType][loadout] then
payload = Olympus.unitPayloads[unit.unitType][loadout]
else
payload = {}