aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/mads/hotspots.h2
-rw-r--r--engines/mads/user_interface.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/hotspots.h b/engines/mads/hotspots.h
index ec9f12dc77..37c37fa1c2 100644
--- a/engines/mads/hotspots.h
+++ b/engines/mads/hotspots.h
@@ -57,7 +57,7 @@ public:
public:
DynamicHotspots(MADSEngine *vm);
- int size() const { return _entries.size(); }
+ Common::Array<MADS::DynamicHotspot>::size_type size() const { return _entries.size(); }
DynamicHotspot &operator[](uint idx) { return _entries[idx]; }
int add(int descId, int vocabId, int seqIndex, const Common::Rect &bounds);
int setPosition(int index, int xp, int yp, int facing);
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp
index 2ea656d0c5..28fc5a6e55 100644
--- a/engines/mads/user_interface.cpp
+++ b/engines/mads/user_interface.cpp
@@ -665,7 +665,7 @@ void UserInterface::scrollInventory() {
_scrollFlag = true;
if (yp == (MADS_SCREEN_HEIGHT - 1)) {
- if (_inventoryTopIndex < (invList.size() - 1)) {
+ if (_inventoryTopIndex < (int)(invList.size() - 1)) {
++_inventoryTopIndex;
_inventoryChanged = true;
}