mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Merge pull request #8 from VEAF/davidp57/issue1
VEAF MCT - error when adding AI planes to the mission
This commit is contained in:
commit
6b765e7c80
@ -229,7 +229,7 @@ do
|
||||
for _,g in ipairs(missionGroups) do
|
||||
if g.units and g.units[1] then
|
||||
local unit = g.units[1]
|
||||
if unit.callsign and unit.callsign[1] and unit.callsign.name then
|
||||
if unit.callsign and type(unit.callsign) == "table" and unit.callsign.name then
|
||||
local callsignName = unit.callsign.name:sub(1, #unit.callsign.name - 2)
|
||||
incrementCallsign(callsignName, unit.callsign[2])
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user