summaryrefslogtreecommitdiff
path: root/src/common/inventorydata.hpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-14 10:43:58 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-14 10:43:58 +0000
commit4b48bc6fefd4f580d3b8db8893f78706e64bf880 (patch)
treec6a36b566f9837bf1faf260f673f11b0ac2df783 /src/common/inventorydata.hpp
parent01e3326de8fc03cf9f61fd1b288cd4f16915484c (diff)
downloadmanaserv-4b48bc6fefd4f580d3b8db8893f78706e64bf880.tar.gz
manaserv-4b48bc6fefd4f580d3b8db8893f78706e64bf880.tar.bz2
manaserv-4b48bc6fefd4f580d3b8db8893f78706e64bf880.tar.xz
manaserv-4b48bc6fefd4f580d3b8db8893f78706e64bf880.zip
Handled money as part of the inventory.
Diffstat (limited to 'src/common/inventorydata.hpp')
-rw-r--r--src/common/inventorydata.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/inventorydata.hpp b/src/common/inventorydata.hpp
index 88bb7086..11c15a3d 100644
--- a/src/common/inventorydata.hpp
+++ b/src/common/inventorydata.hpp
@@ -51,9 +51,11 @@ struct InventoryItem
*/
struct Possessions
{
- unsigned short equipment[EQUIPMENT_SLOTS];
std::vector< InventoryItem > inventory;
- Possessions() { for (int i = 0; i < EQUIPMENT_SLOTS; ++i) equipment[i] = 0; }
+ int money;
+ unsigned short equipment[EQUIPMENT_SLOTS];
+ Possessions(): money(0)
+ { for (int i = 0; i < EQUIPMENT_SLOTS; ++i) equipment[i] = 0; }
};
#endif