summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-04 22:28:08 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-04 22:28:08 +0000
commit90290b7aaf2a55187598e67c31d33f5735f574ce (patch)
tree64826ee1d40e993ab70c9d6f077ded33c747edf0 /src/inventory.cpp
parent4eec29ac0f6a9b05562ac0fbe3d4e5d7e82deeac (diff)
downloadmana-client-90290b7aaf2a55187598e67c31d33f5735f574ce.tar.gz
mana-client-90290b7aaf2a55187598e67c31d33f5735f574ce.tar.bz2
mana-client-90290b7aaf2a55187598e67c31d33f5735f574ce.tar.xz
mana-client-90290b7aaf2a55187598e67c31d33f5735f574ce.zip
Client-side hack for picking up items.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index 0467df10..ac0bce18 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -103,7 +103,7 @@ bool Inventory::contains(Item *item)
int Inventory::getFreeSlot()
{
- Item *i = std::find_if(mItems + 2, mItems + INVENTORY_SIZE,
+ Item *i = std::find_if(mItems, mItems + INVENTORY_SIZE,
std::not1(SlotUsed()));
return (i == mItems + INVENTORY_SIZE) ? -1 : (i - mItems);
}