Skip to content

Commit

Permalink
fix nameLocked config
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Nov 22, 2024
1 parent 538383c commit 807fb07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/missile_hud/functions/fnc_registerDefaultHud.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

{
private _config = configFile >> QEGVAR(missileguidance,AttackProfiles) >> _x;
if (getText (_config >> "name") != "" || getText (_config >> "lockedName") != "" || _hudFnc != "") exitWith {
if (getText (_config >> "name") != "" || getText (_config >> "nameLocked") != "" || _hudFnc != "") exitWith {
_hasAttackMode = true;
breakTo "cond";
}
Expand All @@ -62,7 +62,7 @@
private _modes = createHashMap;
{
private _config = configFile >> QEGVAR(missileguidance,AttackProfiles) >> _x;
_modes set [_x, [getText (_config >> "name"), getText (_config >> "lockedName")]];
_modes set [_x, [getText (_config >> "name"), getText (_config >> "nameLocked")]];
} forEach _attackProfiles;

_magazineDetails set [_magazine, [_modes, _defaultAttackProfile, _hudFnc, _ammoConfig]];
Expand Down

0 comments on commit 807fb07

Please sign in to comment.