[Scummvm-git-logs] scummvm master -> 32c27f54f7f9e2bf78c10ba63cdcb01bab849787

madmoose thomas at fach-pedersen.net
Sun Jun 7 10:17:26 UTC 2020


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:
32c27f54f7 KINGDOM: Fix cursor in item selection


Commit: 32c27f54f7f9e2bf78c10ba63cdcb01bab849787
    https://github.com/scummvm/scummvm/commit/32c27f54f7f9e2bf78c10ba63cdcb01bab849787
Author: Thomas Fach-Pedersen (thomas at fach-pedersen.net)
Date: 2020-06-07T12:17:03+02:00

Commit Message:
KINGDOM: Fix cursor in item selection

Changed paths:
    engines/kingdom/kingdom.cpp


diff --git a/engines/kingdom/kingdom.cpp b/engines/kingdom/kingdom.cpp
index 1e12b6e911..ba02dea8cf 100644
--- a/engines/kingdom/kingdom.cpp
+++ b/engines/kingdom/kingdom.cpp
@@ -1626,7 +1626,7 @@ void KingdomGame::cursorType() {
 			if (_logic->_nodeNum == 56 && _logic->_inventory[8] < 1 && _wizard)
 				var2 = 80;
 			int indx = _iconActTable[var2][var6];
-			if (_logic->_inventory[indx] != 0 && _logic->_nodes[28] != 1 && _logic->_nodes[67] != 1 && !_iconsClosed && !_itemInhibit) {
+			if (_logic->_inventory[indx] > 0 && _logic->_nodes[28] != 1 && _logic->_nodes[67] != 1 && !_iconsClosed && !_itemInhibit) {
 				_mouseValue = indx + 0x428;
 				_iconSelect = var6;
 				break;




More information about the Scummvm-git-logs mailing list