Skip to content

Commit

Permalink
added Fussels fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AdlerSalbei committed Jun 22, 2022
1 parent 6396cc7 commit ea52f60
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
1 change: 0 additions & 1 deletion addons/getLoadoutsFromUnits/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ PREP(getLoadoutAndFormat);
PREP(getWeapon);
PREP(onBtnOk);
PREP(onLoad);
PREP(removeNilFromArray);
PREP(returnBaseItem);
PREP(vanillaCivDefactionizer);
PREP(vanillaMilitaryDefactionizer);
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ if (!(_loadout select 5 isEqualTo []) && {!(_loadout select 5 select 1 isEqualTo

_return pushBack (_tab + _tab + "};");


//_return = _return - [nil]; - This sadly does not work :(
//So I have to do it the hard way
_return = [_return] call FUNC(removeNilFromArray);
_return = _return select {!isNil "_x" };

_return
15 changes: 0 additions & 15 deletions addons/getLoadoutsFromUnits/functions/fnc_removeNilFromArray.sqf

This file was deleted.

0 comments on commit ea52f60

Please sign in to comment.