aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2014-11-26 00:04:16 +0100
committerPaul Gilbert2014-12-12 22:46:01 -0500
commit0a28a77e1a6339c292826b264047bd439290fe16 (patch)
tree81c8e670a50088b76cf3fb2aebf2503d7b366305 /engines
parent451a29ada517fad99a5de823efca8758416ccd46 (diff)
downloadscummvm-rg350-0a28a77e1a6339c292826b264047bd439290fe16.tar.gz
scummvm-rg350-0a28a77e1a6339c292826b264047bd439290fe16.tar.bz2
scummvm-rg350-0a28a77e1a6339c292826b264047bd439290fe16.zip
ACCESS: Silent warning
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() {