mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2025-08-15 06:17:22 +00:00
Merge pull request #75 from RndName/ai-troop-limits
Use transportLimit for unknown numberOrTemplate
This commit is contained in:
commit
77b5f6008e
2
CTLD.lua
2
CTLD.lua
@ -2121,7 +2121,7 @@ function ctld.loadTroops(_heli, _troops, _numberOrTemplate)
|
||||
|
||||
--number doesnt apply to vehicles
|
||||
if _numberOrTemplate == nil or (type(_numberOrTemplate) ~= "table" and type(_numberOrTemplate) ~= "number") then
|
||||
_numberOrTemplate = ctld.numberOfTroops
|
||||
_numberOrTemplate = ctld.getTransportLimit(_heli:getTypeName())
|
||||
end
|
||||
|
||||
if _onboard == nil then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user