#1364 - Prevent script error if bad muzzle

This commit is contained in:
PabstMirror 2015-05-22 23:38:16 -05:00
parent 5e94e2c04b
commit 437db22ab8

View File

@ -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);