diff options
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp index b4477f6d3..53cdeb34c 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -46,12 +46,12 @@ struct SlotUsed final : public std::unary_function<Item*, bool> } }; -Inventory::Inventory(const int type, const int size) : +Inventory::Inventory(const int type, const int size1) : mInventoryListeners(), mType(type), - mSize(size == -1 ? static_cast<unsigned>( + mSize(size1 == -1 ? static_cast<unsigned>( Net::getInventoryHandler()->getSize(type)) - : static_cast<unsigned>(size)), + : static_cast<unsigned>(size1)), mItems(new Item*[mSize]), mUsed(0) { |