This commit is contained in:
Sven Van de Velde
2016-12-10 08:40:49 +01:00
parent 2582e7a90a
commit 038c10c4d4
3 changed files with 9 additions and 12 deletions

View File

@@ -714,6 +714,10 @@ function EVENT:onEvent( Event )
Event.IniDCSUnitName = Event.IniDCSUnit:getName()
Event.IniUnitName = Event.IniDCSUnitName
Event.IniUnit = UNIT:FindByName( Event.IniDCSUnitName )
if not Event.IniUnit then
-- Unit can be a CLIENT. Most likely this will be the case ...
Event.IniUnit = CLIENT:FindByName( Event.IniDCSUnitName )
end
Event.IniDCSGroupName = ""
if Event.IniDCSGroup and Event.IniDCSGroup:isExist() then
Event.IniDCSGroupName = Event.IniDCSGroup:getName()