Skip to content

Commit

Permalink
fix(perk): admin override unloaded module state
Browse files Browse the repository at this point in the history
  • Loading branch information
pridit committed Aug 16, 2023
1 parent 6264f0b commit 4e124d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perk/functions/fn_show.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ _roles = [0, GVAR(perk_type_roles)] call FUNC(common,arrayValues);
DIALOG("X_PERK_DIALOG", 500 + _column) ctrlSetText "\ca\ui\data\icon_task_ca";

for "_i" from 1 to 5 do {
if (_points < 1 && {!isNil QMODULE(admin) && {!(__submodulePP(admin))}}) exitWith {};
if (_points < 1 && ({!isNil QMODULE(admin) && {!(__submodulePP(admin))} || {isNil QMODULE(admin)}})) exitWith {};

DIALOG("X_PERK_DIALOG", 200 + (_column * 10) + _i) ctrlSetText "\ca\ui\data\cmdbar_player_ca";

Expand Down

0 comments on commit 4e124d0

Please sign in to comment.