aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/access/inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/access/inventory.cpp b/engines/access/inventory.cpp
index 11baa8fc08..629b89f155 100644
--- a/engines/access/inventory.cpp
+++ b/engines/access/inventory.cpp
@@ -90,7 +90,7 @@ int &InventoryManager::operator[](int idx) {
// WORKAROUND: At least in Amazon, some game scripts accidentally do reads
// beyond the length of the inventory array
static int invalid = 0;
- return (idx >= _inv.size()) ? invalid : _inv[idx]._value;
+ return (idx >= (int)_inv.size()) ? invalid : _inv[idx]._value;
}
int InventoryManager::useItem() {