diff options
Diffstat (limited to 'src/being/playerinfo.cpp')
-rw-r--r-- | src/being/playerinfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |