[Scummvm-git-logs] scummvm master -> f8443c5e661ba51ac5549a8a59cbb848baa28cdf
bluegr
noreply at scummvm.org
Sat Jun 17 21:54:23 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
f8443c5e66 MM: MM1: Fix bounds check in enhanced mode inventory handling
Commit: f8443c5e661ba51ac5549a8a59cbb848baa28cdf
https://github.com/scummvm/scummvm/commit/f8443c5e661ba51ac5549a8a59cbb848baa28cdf
Author: PushmePullyu (127053144+PushmePullyu at users.noreply.github.com)
Date: 2023-06-18T00:54:19+03:00
Commit Message:
MM: MM1: Fix bounds check in enhanced mode inventory handling
Changed paths:
engines/mm/mm1/views_enh/character_inventory.cpp
diff --git a/engines/mm/mm1/views_enh/character_inventory.cpp b/engines/mm/mm1/views_enh/character_inventory.cpp
index 3102598cb51..41cdb1dffdc 100644
--- a/engines/mm/mm1/views_enh/character_inventory.cpp
+++ b/engines/mm/mm1/views_enh/character_inventory.cpp
@@ -72,7 +72,7 @@ bool CharacterInventory::msgFocus(const FocusMessage &msg) {
bool CharacterInventory::msgGame(const GameMessage &msg) {
if (msg._name == "ITEM" && msg._value >= 0 &&
- msg._value <= (int)_items.size()) {
+ msg._value < (int)_items.size()) {
_selectedItem = msg._value;
performAction();
return true;
More information about the Scummvm-git-logs
mailing list