Skip to content

Commit

Permalink
Merge pull request #3409 from jaj22/fix-CBA-disposable-missile
Browse files Browse the repository at this point in the history
Fix CUP disposable missile launchers breaking init after CBA 3.18 update
  • Loading branch information
Bob-Murphy authored Oct 8, 2024
2 parents 26c5199 + dedfae4 commit 0a37c52
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ call {
if (getNumber (_config >> "rhs_disposable") == 1 or _mainmag == "CBA_fakeLauncherMagazine") then {
_categories pushBack "Disposable";
if (getNumber (_config >> "scope") == 1) exitWith { _categories set [0, "UsedLaunchers"] };
if (_mainmag == "CBA_fakeLauncherMagazine" and !isNil "cba_disposable_normalLaunchers") then {
_mainmag = (cba_disposable_normalLaunchers getVariable _classname) # 1; // format is [realLauncher, magazine]
if (_mainmag == "CBA_fakeLauncherMagazine" and !isNil "cba_disposable_normalLaunchers" and {typeName cba_disposable_normalLaunchers == "HASHMAP"}) then {
_mainmag = (cba_disposable_normalLaunchers get _classname) # 1; // format is [realLauncher, magazine]
};
};
if (_categories#0 == "UsedLaunchers") exitWith {};
Expand Down

0 comments on commit 0a37c52

Please sign in to comment.