Fixes for getPlayerName() errors if DCS object is not a UNIT

This commit is contained in:
Applevangelist
2023-04-18 10:27:20 +02:00
parent dffb1c0768
commit d8e765a9b1
2 changed files with 30 additions and 118 deletions

View File

@@ -8115,6 +8115,8 @@ function AIRBOSS:OnEventBirth( EventData )
return
end
if EventData.IniObjectCategory ~= Object.Category.UNIT then return end
local _unitName = EventData.IniUnitName
local _unit, _playername = self:_GetPlayerUnitAndName( _unitName )