aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/inventory.cpp
diff options
context:
space:
mode:
authorStrangerke2014-03-19 08:12:11 +0100
committerStrangerke2014-03-19 08:12:11 +0100
commitb04f7c16935e63f35a46ffe9eec4e712c2b824c8 (patch)
treef3186a1a60f10f845e48a2951e4124a8bb326f54 /engines/mads/inventory.cpp
parent829a099ad23e187db7cd79353d975d381d6c0338 (diff)
downloadscummvm-rg350-b04f7c16935e63f35a46ffe9eec4e712c2b824c8.tar.gz
scummvm-rg350-b04f7c16935e63f35a46ffe9eec4e712c2b824c8.tar.bz2
scummvm-rg350-b04f7c16935e63f35a46ffe9eec4e712c2b824c8.zip
MADS: set public 2 inventory functions, fix signed/unsigned comparison
Diffstat (limited to 'engines/mads/inventory.cpp')
-rw-r--r--engines/mads/inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/inventory.cpp b/engines/mads/inventory.cpp
index 4f6ba48027..b697462cae 100644
--- a/engines/mads/inventory.cpp
+++ b/engines/mads/inventory.cpp
@@ -110,7 +110,7 @@ void InventoryObjects::addToInventory(int objectId) {
userInterface._inventoryTopIndex = CLIP(userInterface._inventoryTopIndex,
0, (int)_inventoryList.size() - 1);
- if ((userInterface._inventoryTopIndex + 5) <= (size() - 1))
+ if ((userInterface._inventoryTopIndex + 5) <= ((int) size() - 1))
userInterface._inventoryTopIndex = size() - 5;
userInterface._inventoryChanged = true;