Skip to content

Commit

Permalink
Update fnc_getCompatibleThrowMuzzle.sqf (#381)
Browse files Browse the repository at this point in the history
Failed to return useful string. Fixed in this version
  • Loading branch information
nk3nny authored Feb 19, 2024
1 parent c82fef8 commit 618424f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/main/functions/fnc_getCompatibleThrowMuzzle.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ private _muzzleIdx = GVAR(cachedThrowingWeapons) findIf {
_magazine in _compatible
};

if (_muzzleIdx == -1) then {
if (_muzzleIdx == -1) then {
_muzzle = "";
} else {
_muzzle = GVAR(cachedThrowingWeapons) select _muzzleIdx;
_muzzle = configName (GVAR(cachedThrowingWeapons) select _muzzleIdx);
};

GVAR(cachedThrowingWeaponsHash) set [_magazine, _muzzle];

_muzzle
_muzzle

0 comments on commit 618424f

Please sign in to comment.