Fortify - Fix invalid object filtering (#9825)

Actually filter object
This commit is contained in:
johnb432 2024-03-04 23:01:40 +01:00 committed by GitHub
parent f76485ff3a
commit 86580f3d6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,7 @@ TRACE_3("registerObjects",_side,_budget,_objects);
if (_side isEqualTo sideUnknown) exitWith {ERROR_1("Bad Side %1",_this);}; if (_side isEqualTo sideUnknown) exitWith {ERROR_1("Bad Side %1",_this);};
_objects select { _objects = _objects select {
private _isValid = _x params [["_xClassname", "", [""]], ["_xCost", 0, [0]]]; private _isValid = _x params [["_xClassname", "", [""]], ["_xCost", 0, [0]]];
private _category = toLower (_x param [2, "", [""]]); private _category = toLower (_x param [2, "", [""]]);
if (_category != "") then { _x set [2, _category]; }; if (_category != "") then { _x set [2, _category]; };