aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/inventory.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-17 11:00:29 +0000
committerEugene Sandulenko2010-08-17 11:00:29 +0000
commit2c545ae1f38e479f2df1d270170bc9708b93a824 (patch)
tree7232d2405cbba85df108c3bb992ddb7b9dededc9 /engines/hugo/inventory.cpp
parent789219022ac353ec72086d96c45a958c856abef2 (diff)
downloadscummvm-rg350-2c545ae1f38e479f2df1d270170bc9708b93a824.tar.gz
scummvm-rg350-2c545ae1f38e479f2df1d270170bc9708b93a824.tar.bz2
scummvm-rg350-2c545ae1f38e479f2df1d270170bc9708b93a824.zip
HUGO: Fix warnings
svn-id: r52146
Diffstat (limited to 'engines/hugo/inventory.cpp')
-rwxr-xr-xengines/hugo/inventory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/hugo/inventory.cpp b/engines/hugo/inventory.cpp
index 1988e9b1cb..c5f09ad653 100755
--- a/engines/hugo/inventory.cpp
+++ b/engines/hugo/inventory.cpp
@@ -136,7 +136,7 @@ int16 InventoryHandler::processInventory(invact_t action, ...) {
cursory -= DIBOFF_Y; // Icon bar is at true zero
if (cursory > 0 && cursory < INV_DY) { // Within icon bar?
i = cursorx / INV_DX; // Compute icon index
- if (scrollFl) // Scroll buttons displayed
+ if (scrollFl) { // Scroll buttons displayed
if (i == 0) // Left scroll button
objId = LEFT_ARROW;
else {
@@ -145,6 +145,7 @@ int16 InventoryHandler::processInventory(invact_t action, ...) {
else // Adjust for scroll
i += firstIconId - 1; // i is icon index
}
+ }
// If not an arrow, find object id - limit to valid range
if (objId == -1 && i < displayNumb)