diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/pink/objects/inventory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pink/objects/inventory.cpp b/engines/pink/objects/inventory.cpp index c2ad3bb0a7..677b18fb8f 100644 --- a/engines/pink/objects/inventory.cpp +++ b/engines/pink/objects/inventory.cpp @@ -187,7 +187,7 @@ void InventoryMgr::showNextItem(bool direction) { uint i = 0; do { - index = (direction == kLeft) ? --index : ++index; + index = (direction == kLeft) ? index - 1 : index + 1; } while(_items[index % _items.size()]->getCurrentOwner() != _item->getCurrentOwner() && ++i < _items.size()); if (i != _items.size()) { |