summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-25 03:49:07 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-25 03:49:07 +0300
commit6840abff7dd6a96b8584b7e425028ce786f9ac57 (patch)
treefd8312de8dbf000a06ea9f04d924ea23d512262c
parent0aeab113a9c90d81a74b92aae908502e5cdd8f30 (diff)
downloadplus-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.cpp4
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);
}