From 016016b7ab9a7f5d3b4c788c7ce35cd4ca32b36e Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 14 Mar 2023 20:13:47 +1100 Subject: [PATCH] - Blood: Fix max weapons slot test preventing `slot 12` from being called. * Fixes #891. --- source/games/blood/src/blood.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/blood/src/blood.cpp b/source/games/blood/src/blood.cpp index 18e2b5ae3..c0ca75a03 100644 --- a/source/games/blood/src/blood.cpp +++ b/source/games/blood/src/blood.cpp @@ -421,7 +421,7 @@ void GameInterface::Ticker() inp.actions |= oldactions & ~(SB_BUTTON_MASK | SB_RUN | SB_WEAPONMASK_BITS); // should be everything non-button and non-weapon int newweap = inp.getNewWeapon(); - if (newweap > 0 && newweap < WeaponSel_MaxBlood) gPlayer[i].newWeapon = newweap; + if (newweap > 0 && newweap <= WeaponSel_MaxBlood) gPlayer[i].newWeapon = newweap; } BloodSpriteIterator it;