diff options
Diffstat (limited to 'engines/mutationofjb/widgets/inventorywidget.cpp')
-rw-r--r-- | engines/mutationofjb/widgets/inventorywidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mutationofjb/widgets/inventorywidget.cpp b/engines/mutationofjb/widgets/inventorywidget.cpp index a26bab6c7e..46bfab9c34 100644 --- a/engines/mutationofjb/widgets/inventorywidget.cpp +++ b/engines/mutationofjb/widgets/inventorywidget.cpp @@ -67,7 +67,7 @@ void InventoryWidget::draw(Graphics::ManagedSurface &surface) { Inventory &inventory = _gui.getGame().getGameData().getInventory(); const Inventory::Items &items = inventory.getItems(); surface.fillRect(_area, 0x00); - for (int i = 0; i < MIN((int) items.size(), (int) Inventory::VISIBLE_ITEMS); ++i) { + for (Inventory::Items::size_type i = 0; i < MIN<Inventory::Items::size_type>(items.size(), Inventory::VISIBLE_ITEMS); ++i) { drawInventoryItem(surface, items[i], i); } } |