Update CSAR.lua for BeaconName being built incorrectly

Prior to this change, the F10 menu "List Active CSAR" is always blank even after a CSAR activity occurs
This commit is contained in:
Mike Young 2024-09-25 21:13:22 -04:00 committed by GitHub
parent 48d30250a0
commit 76577c03e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -841,9 +841,9 @@ function CSAR:_AddCsar(_coalition , _country, _point, _typeName, _unitName, _pla
local BeaconName
if _playerName then
BeaconName = _unitName..math.random(1,10000)
elseif _unitName then
BeaconName = _playerName..math.random(1,10000)
elseif _unitName then
BeaconName = _unitName..math.random(1,10000)
else
BeaconName = "Ghost-1-1"..math.random(1,10000)
end