[Scummvm-git-logs] scummvm master -> 3a5a7c88a50888b7e86cb15135688d66541315dc
mduggan
noreply at scummvm.org
Sat Jan 4 05:20:47 UTC 2025
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:
3a5a7c88a5 DGDS: Avoid going to blank page in inventory
Commit: 3a5a7c88a50888b7e86cb15135688d66541315dc
https://github.com/scummvm/scummvm/commit/3a5a7c88a50888b7e86cb15135688d66541315dc
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2025-01-04T16:20:14+11:00
Commit Message:
DGDS: Avoid going to blank page in inventory
Changed paths:
engines/dgds/inventory.cpp
diff --git a/engines/dgds/inventory.cpp b/engines/dgds/inventory.cpp
index 22dd4bf9887..555223017ae 100644
--- a/engines/dgds/inventory.cpp
+++ b/engines/dgds/inventory.cpp
@@ -427,7 +427,7 @@ void Inventory::mouseLUp(const Common::Point &pt) {
if (isItemInInventory(item))
numInvItems++;
}
- if (_itemOffset < numInvItems)
+ if (_itemOffset < numInvItems && _itemOffset + itemsPerPage <= numInvItems)
_itemOffset += itemsPerPage;
} else if (_prevPageBtn->containsPoint(pt) && _prevPageBtn->isVisible()) {
if (_itemOffset > 0)
More information about the Scummvm-git-logs
mailing list