Update addons/repair/functions/fnc_getSelectionsToIgnore.sqf

This commit is contained in:
Grim 2023-11-29 16:04:01 -03:00 committed by GitHub
parent 3594902df3
commit d17dbe84ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,7 @@ private _type = typeOf _vehicle;
TRACE_2("getSelectionsToIgnore",_vehicle,_type);
private _initializedClasses = missionNamespace getVariable [QGVAR(hitPointsToIgnoreInitializedClasses), createHashMap];
private _initializedDepends = missionNamespace getVariable [QGVAR(dependsHitPointsInitializedClasses), createHashMap];
if (_type in _initializedClasses) exitWith
{
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