Repair - Fix script error if vehicle is null (#9479)

This commit is contained in:
PabstMirror 2023-10-12 11:47:59 -05:00 committed by GitHub
parent bd377c49fc
commit 58cedab493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ TRACE_2("addRepairActions", _vehicle,_type);
// do nothing if the class is already initialized
private _initializedClasses = GETMVAR(GVAR(initializedClasses),[]);
if (_type in _initializedClasses) exitWith {};
if (_type == "") exitWith {};
// get selections to ignore
private _selectionsToIgnore = _vehicle call FUNC(getSelectionsToIgnore);