diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-01-25 03:49:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-01-25 03:49:07 +0300 |
commit | 6840abff7dd6a96b8584b7e425028ce786f9ac57 (patch) | |
tree | fd8312de8dbf000a06ea9f04d924ea23d512262c | |
parent | 0aeab113a9c90d81a74b92aae908502e5cdd8f30 (diff) | |
download | plus-6840abff7dd6a96b8584b7e425028ce786f9ac57.tar.gz plus-6840abff7dd6a96b8584b7e425028ce786f9ac57.tar.bz2 plus-6840abff7dd6a96b8584b7e425028ce786f9ac57.tar.xz plus-6840abff7dd6a96b8584b7e425028ce786f9ac57.zip |
Create main inventory always with configurable variable size fixedInventorySize
-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); } |