Skip to content

Commit

Permalink
Fixes an issue where loadouts with no Binoculars would throw a script…
Browse files Browse the repository at this point in the history
… error.
  • Loading branch information
Superxpdude committed Apr 21, 2020
1 parent bfef625 commit b4f8f53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template/functions/loadout/fn_loadInventory.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private _backpackArray = [_backpackClass, _backpackItems];
private _binocularArray = [_binocular,"","","",[],[],""];

// Check if the binoculars are a laser designator
private _binocularMagazines = (configFile >> "CfgWeapons" >> _binocular >> "magazines") call BIS_fnc_getCfgData;
private _binocularMagazines = (configFile >> "CfgWeapons" >> _binocular >> "magazines") call BIS_fnc_getCfgDataArray;
if ((count _binocularMagazines) > 0) then {
private _laserBattery = _binocularMagazines select 0;
private _batteryCount = (configFile >> "CfgMagazines" >> _laserBattery >> "count") call BIS_fnc_getCfgData;
Expand Down
2 changes: 1 addition & 1 deletion template/version.hpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define __XPTVERSION__ "0.5.5"
#define __XPTVERSION__ "0.5.5.1"

0 comments on commit b4f8f53

Please sign in to comment.