Fix being unable to throw last mag (#5242)

This commit is contained in:
PabstMirror 2017-06-03 21:39:52 -05:00 committed by GitHub
parent b3889d9d7e
commit c9b26fa3e5

View File

@ -37,7 +37,7 @@ if (_throwable isEqualTo [] && {!_primed}) exitWith {
private _throwableMag = _throwable param [0, "#none"];
// If not primed, double check we actually have the magazine in inventory
if ((!_primed) && {!(_throwableMag in (magazines ACE_player))}) exitWith {
if ((!_primed) && {!((_throwableMag in (uniformItems ACE_player)) || {_throwableMag in (vestItems ACE_player)} || {_throwableMag in (backpackItems ACE_player)})}) exitWith {
[ACE_player, "No valid throwable (glitched currentThrowable)"] call FUNC(exitThrowMode);
};