diff options
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index 2de03431..e689f8bb 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -36,8 +36,7 @@ static bool slotUsed(const Item *item) Inventory::Inventory(Type type, int size): mType(type), - mSize(size == -1 ? Net::getInventoryHandler()->getSize(type) : size), - mUsed(0) + mSize(size == -1 ? Net::getInventoryHandler()->getSize(type) : size) { mItems = new Item*[mSize]; std::fill_n(mItems, mSize, (Item*) nullptr); |