Skip to content

Commit 68af186

Browse files
authored
Improve Tracers module weapon compatibility (#604)
1 parent 10f5c2d commit 68af186

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/modules/functions/fnc_compileTracers.sqf

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ private _cfgMagazineWells = configFile >> "CfgMagazineWells";
2323
if (
2424
getNumber (_x >> "scope") == 2
2525
&& {getNumber (_x >> "type") == TYPE_WEAPON_PRIMARY}
26-
&& {count getArray (_x >> "muzzles") == 1}
26+
&& {{_x != "SAFE"} count getArray (_x >> "muzzles") == 1}
2727
) then {
2828
private _weapon = configName _x;
2929

30-
if (getText (_x >> "baseWeapon") == _weapon) then {
30+
if (_weapon call BIS_fnc_baseWeapon == _weapon) then {
3131
private _magazines = getArray (_x >> "magazines");
3232

3333
{

0 commit comments

Comments
 (0)