aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agos/input.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/input.cpp b/engines/agos/input.cpp
index c4d4c7a43d..35779323e3 100644
--- a/engines/agos/input.cpp
+++ b/engines/agos/input.cpp
@@ -426,7 +426,7 @@ void AGOSEngine_Feeble::handleMouseWheelUp() {
} else if (_mouse.x >= 172 && _mouse.x <= 469 && _mouse.y >= 287 && _mouse.y <= 382) {
HitArea *ha = findBox(0x7FFB);
if (ha != NULL && (ha->flags & kBFBoxInUse)) {
- if (!isSpriteLoaded(21, 9))
+ if (!isSpriteLoaded(21, 9) && !isSpriteLoaded(23, 9))
inventoryUp(ha->window);
}
}
@@ -441,7 +441,7 @@ void AGOSEngine_Feeble::handleMouseWheelDown() {
} else if (_mouse.x >= 172 && _mouse.x <= 469 && _mouse.y >= 287 && _mouse.y <= 382) {
HitArea *ha = findBox(0x7FFC);
if (ha != NULL && (ha->flags & kBFBoxInUse)) {
- if (!isSpriteLoaded(23, 9))
+ if (!isSpriteLoaded(21, 9) && !isSpriteLoaded(23, 9))
inventoryDown(ha->window);
}
}