Arsenal - Fix modParams printing messages in RPT (#10213)

Fix modParams printing messages in RPT
This commit is contained in:
johnb432 2024-08-16 19:17:57 +02:00 committed by GitHub
parent 903f046810
commit 8dbad08838
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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, ""]