mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
#1364 - Prevent script error if bad muzzle
This commit is contained in:
parent
5e94e2c04b
commit
437db22ab8
@ -53,7 +53,9 @@ if (_unit getVariable [QGVAR(actionID), -1] == -1) then {
|
||||
_unit setVariable [QGVAR(actionID), _id];
|
||||
};
|
||||
|
||||
_unit selectWeapon _muzzle;//_weapon
|
||||
if ((typeName _muzzle) == (typeName "")) then {
|
||||
_unit selectWeapon _muzzle;//_weapon
|
||||
};
|
||||
|
||||
// play fire mode selector sound
|
||||
[_unit, _weapon, _muzzle] call FUNC(playChangeFiremodeSound);
|
||||
|
Loading…
Reference in New Issue
Block a user