From 6840abff7dd6a96b8584b7e425028ce786f9ac57 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Jan 2019 03:49:07 +0300 Subject: Create main inventory always with configurable variable size fixedInventorySize --- src/being/playerinfo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp index 2298e8c59..0f3193fb3 100644 --- a/src/being/playerinfo.cpp +++ b/src/being/playerinfo.cpp @@ -23,6 +23,7 @@ #include "configuration.h" #include "itemsoundmanager.h" +#include "settings.h" #include "being/localplayer.h" @@ -471,7 +472,8 @@ void stateChange(const StateT state) { if (mInventory == nullptr) { - mInventory = new Inventory(InventoryType::Inventory, -1); + mInventory = new Inventory(InventoryType::Inventory, + settings.fixedInventorySize); mEquipment = new Equipment; mCartInventory = new Inventory(InventoryType::Cart, -1); } -- cgit v1.2.3-70-g09d2