diff --git a/addons/nametags/functions/fnc_drawNameTagIcon.sqf b/addons/nametags/functions/fnc_drawNameTagIcon.sqf index a765f1b8024..bfe065cf303 100644 --- a/addons/nametags/functions/fnc_drawNameTagIcon.sqf +++ b/addons/nametags/functions/fnc_drawNameTagIcon.sqf @@ -37,7 +37,7 @@ _fnc_parameters = { _size = 1; } else { if (_drawRank && {rank _target != ""}) then { - _icon = GVAR(factionRanks) getVariable faction _target; + _icon = GVAR(factionRanks) getVariable (_target getVariable [QGVAR(faction), faction _target]); if (!isNil "_icon") then { _icon = _icon param [ALL_RANKS find rank _target, ""]; } else {