The function name was changed in CBA

This commit is contained in:
esteldunedain 2016-03-05 13:15:56 -03:00
parent 62f598b2a6
commit ebfd76107e
3 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@ ADDON = false;
#include "XEH_PREP.hpp"
if (isNil "CBA_fnc_getMagazineIds") then {
CBA_fnc_getMagazineIds = {
if (isNil "CBA_fnc_getMagazineIndex") then {
CBA_fnc_getMagazineIndex = {
params [["_unit", objNull, [objNull]], ["_magazine", "", [""]]];
private _displayName = getText (configFile >> "CfgMagazines" >> _magazine >> "displayName");

View File

@ -21,7 +21,7 @@ params ["_unit", "_weapon", "_weaponTemp", "_barrelMass"];
TRACE_4("loadCoolestSpareBarrel1",_unit,_weapon,_weaponTemp,_barrelMass);
// Find all spare barrel the player has
private _allBarrels = [_unit, "ACE_SpareBarrel"] call CBA_fnc_getMagazineIds;
private _allBarrels = [_unit, "ACE_SpareBarrel"] call CBA_fnc_getMagazineIndex;
TRACE_1("_allBarrels",_allBarrels);
if ((count _allBarrels) < 1) exitWith {};

View File

@ -19,7 +19,7 @@ params ["_player","_unit"];
// Find all spare barrel the player has
TRACE_2("sendSpareBarrelsTemperatureHunt",_player,_unit);
private _allBarrels = [_unit, "ACE_SpareBarrel"] call CBA_fnc_getMagazineIds;
private _allBarrels = [_unit, "ACE_SpareBarrel"] call CBA_fnc_getMagazineIndex;
TRACE_1("_allBarrels",_allBarrels);
if ((count _allBarrels) < 1) exitWith {};