Skip to content

Commit

Permalink
Vehicle damage - Fix ERA/SLAT not being detected (acemod#10168)
Browse files Browse the repository at this point in the history
* Fix ERA/SLAT not being detected
  • Loading branch information
johnb432 authored and blake8090 committed Aug 18, 2024
1 parent 242c308 commit ae143cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/vehicle_damage/functions/fnc_addEventHandler.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ private _hitpointHash = [[], nil] call CBA_fnc_hashCreate;
private _vehicleConfig = configOf _vehicle;
private _hitpointsConfig = _vehicleConfig >> "HitPoints";
private _turretConfig = _vehicleConfig >> "Turrets";
private _eraHitpoints = [_vehicleConfig >> QGVAR(eraHitpoints), "ARRAY", []] call CBA_fnc_getConfigEntry;
private _slatHitpoints = [_vehicleConfig >> QGVAR(slatHitpoints), "ARRAY", []] call CBA_fnc_getConfigEntry;
private _eraHitpoints = ([_vehicleConfig >> QGVAR(eraHitpoints), "ARRAY", []] call CBA_fnc_getConfigEntry) apply {toLowerANSI _x};
private _slatHitpoints = ([_vehicleConfig >> QGVAR(slatHitpoints), "ARRAY", []] call CBA_fnc_getConfigEntry) apply {toLowerANSI _x};

// Add hitpoint names to config for quick lookup
{
Expand Down

0 comments on commit ae143cb

Please sign in to comment.