Skip to content

Commit

Permalink
fixed weird edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
AdlerSalbei committed Jun 15, 2022
1 parent 4148353 commit 4eeef29
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ _types deleteAt (_types find "Soldier_F");

if (_loadoutWeapon isNotEqualTo []) then {
{
if ((_x isNotEqualTo "" && {_x isNotEqualTo []}) && {_x isEqualTo (_weaponArraySoldier select _forEachIndex)}) then {
if (
(_x isNotEqualTo "" && {_x isNotEqualTo []})
&& {_weaponArraySoldier isNotEqualTo []}
&& {_x isEqualTo (_weaponArraySoldier select _forEachIndex)}
) then {
_baseLoadoutWeapons set [_forEachIndex, _x];
_weaponArraySoldier set [_forEachIndex, ""];
_loadoutWeapon set [_forEachIndex, ""];
Expand Down

0 comments on commit 4eeef29

Please sign in to comment.