Skip to content

Commit

Permalink
Arsenal - Fix modParams printing messages in RPT (acemod#10213)
Browse files Browse the repository at this point in the history
Fix modParams printing messages in RPT
  • Loading branch information
johnb432 authored and blake8090 committed Aug 18, 2024
1 parent 30432f8 commit c2fd111
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addons/arsenal/functions/fnc_sortStatement_mod.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@

params ["_config"];

(modParams [_config call EFUNC(common,getAddon), ["name"]]) param [0, ""]
private _addon = _config call EFUNC(common,getAddon);

// Calling modParams with "" prints 'ModParams - Undefined or empty mod directory' in RPT
if (_addon == "") exitWith {""};

(modParams [_addon, ["name"]]) param [0, ""]

0 comments on commit c2fd111

Please sign in to comment.