mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
The function name was changed in CBA
This commit is contained in:
parent
62f598b2a6
commit
ebfd76107e
@ -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");
|
||||
|
@ -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 {};
|
||||
|
||||
|
@ -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 {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user