Skip to content

Commit

Permalink
Inventory - Remove duplicate code (#9791)
Browse files Browse the repository at this point in the history
Update XEH_preStart.sqf
  • Loading branch information
johnb432 authored Feb 11, 2024
1 parent e75ef3d commit cdc5164
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions addons/inventory/XEH_preStart.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ uiNamespace setVariable [QGVAR(backpackKeyCache), compileFinal createHashMapFrom
if (_picture select [0, 1] == "\") then {
_picture = _picture select [1];
};
if (count _picture > 0 && !(_picture regexMatch ".*?\.paa")) then { // handle missing file extension
if (!fileExists (_picture + ".paa")) exitWith {};
_picture = _picture + ".paa";
};

// Handle missing file extension, as inventory returns path with extension
if (count _picture > 0 && !(_picture regexMatch ".*?\.paa")) then {
Expand Down

0 comments on commit cdc5164

Please sign in to comment.