broma-arma / BromA-Framework-A3-Addon

The addon version of the BromA Framework for ArmA 3.
5 stars 9 forks source link

Team Roster: A custom unitInit loadout role is displayed as the raw value #166

Closed Coryf88 closed 3 years ago

Coryf88 commented 3 years ago

Using a custom loadout role in the unitInit results in the Team Roster displaying the raw role name.

E.g. this setVariable ["unitInit", ["main", "*", "ar", "*"]]; would result in the unit's role being displayed as "ar", instead of "Autorifleman".

https://github.com/Neefay/BromA-Framework-A3-Addon/blob/c8565ee3d9dc7a99da8fd27053135b05a9f55f7a/plugins/team_roster/functions/fn_roster.sqf#L119

Coryf88 commented 3 years ago

Fixed in commit https://github.com/Neefay/BromA-Framework-A3-Addon/commit/44daa99a8235d9ba6f45dd4876b87f108f4a30af

Was caused by 3 should be 2 in: https://github.com/Neefay/BromA-Framework-A3-Addon/blob/4abfed0cc3c5a71d061729d6b0d821963c502fe4/loadouts/includes/set-identity.sqf#L6