summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/inventory.h b/src/inventory.h
index 42ec86882..8438f63d7 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -23,6 +23,8 @@
#ifndef INVENTORY_H
#define INVENTORY_H
+#include "enums/inventorytype.h"
+
#include "enums/being/gender.h"
#include <list>
@@ -40,17 +42,6 @@ class Inventory final
static const int NO_SLOT_INDEX = -1; /**< Slot has no index. */
- enum
- {
- INVENTORY = 0,
- STORAGE,
- CART,
- TRADE,
- NPC,
- TYPE_END
- };
-
-
/**
* Constructor.
*
@@ -161,7 +152,7 @@ class Inventory final
{ return mType; }
bool isMainInventory() const A_WARN_UNUSED
- { return mType == INVENTORY; }
+ { return mType == InventoryType::INVENTORY; }
const Item *findItemBySprite(std::string spritePath,
const Gender::Type gender,