mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix missing return values
This commit is contained in:
parent
f7bc73ed35
commit
287a8d3a0e
@ -20,7 +20,12 @@ params ["_vehicle"];
|
||||
private _type = typeOf _vehicle;
|
||||
TRACE_2("getSelectionsToIgnore",_vehicle,_type);
|
||||
private _initializedClasses = missionNamespace getVariable [QGVAR(hitPointsToIgnoreInitializedClasses), createHashMap];
|
||||
if (_type in _initializedClasses) exitWith {_initializedClasses get _type};
|
||||
private _initializedDepends = missionNamespace getVariable [QGVAR(dependsHitPointsInitializedClasses), createHashMap];
|
||||
if (_type in _initializedClasses) exitWith
|
||||
{
|
||||
TRACE_2("retrieved chached selections",_vehicle,_type);
|
||||
[_initializedClasses get _type, _initializedDepends get _type];
|
||||
}; //you return different amount of values each time
|
||||
|
||||
private _vehCfg = configOf _vehicle;
|
||||
private _hitpointGroups = getArray (_vehCfg >> QGVAR(hitpointGroups));
|
||||
@ -155,4 +160,7 @@ private _processedSelections = [];
|
||||
_initializedClasses set [_type, _indexesToIgnore];
|
||||
missionNamespace setVariable [QGVAR(hitPointsToIgnoreInitializedClasses), _initializedClasses];
|
||||
|
||||
_initializedDepends set [_type, _dependsArray];
|
||||
missionNamespace setVariable [QGVAR(dependsHitPointsInitializedClasses), _initializedDepends];
|
||||
|
||||
[_indexesToIgnore, _dependsArray]
|
||||
|
Loading…
Reference in New Issue
Block a user