diff --git a/Moose Development/Moose/Functional/Range.lua b/Moose Development/Moose/Functional/Range.lua index 984dbed7e..769598b9c 100644 --- a/Moose Development/Moose/Functional/Range.lua +++ b/Moose Development/Moose/Functional/Range.lua @@ -4109,7 +4109,7 @@ function RANGE:_GetPlayerUnitAndName( _unitName ) -- Get DCS unit from its name. local DCSunit = Unit.getByName( _unitName ) - if DCSunit then + if DCSunit and DCSunit.getPlayerName then local playername = DCSunit:getPlayerName() local unit = UNIT:Find( DCSunit )