mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixes for getPlayerName() errors if DCS object is not a UNIT
This commit is contained in:
@@ -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 )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user