summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-18 07:40:43 +0800
committerYohann Ferreira <yohann.ferreira@orange.fr>2011-09-28 23:08:36 +0800
commitd6449162225eeeed3f68fb443dcecfdaa235f3be (patch)
tree91eafdbc6d4d3eecb5ecf47f04cd41e8ca61375f
parent1c15e85d062b8bf2d83a2c28652de652ca915694 (diff)
downloadmana-d6449162225eeeed3f68fb443dcecfdaa235f3be.tar.gz
mana-d6449162225eeeed3f68fb443dcecfdaa235f3be.tar.bz2
mana-d6449162225eeeed3f68fb443dcecfdaa235f3be.tar.xz
mana-d6449162225eeeed3f68fb443dcecfdaa235f3be.zip
Got rid of the superfluous definition of the slot number for tA.
-rw-r--r--src/equipment.h2
-rw-r--r--src/net/tmwa/inventoryhandler.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/equipment.h b/src/equipment.h
index 2ef970ea..67317d39 100644
--- a/src/equipment.h
+++ b/src/equipment.h
@@ -22,8 +22,6 @@
#ifndef EQUIPMENT_H
#define EQUIPMENT_H
-#define EQUIPMENT_SIZE 11
-
class Item;
class Equipment
diff --git a/src/net/tmwa/inventoryhandler.h b/src/net/tmwa/inventoryhandler.h
index 218723e6..bbb734e7 100644
--- a/src/net/tmwa/inventoryhandler.h
+++ b/src/net/tmwa/inventoryhandler.h
@@ -34,6 +34,8 @@
#include "net/tmwa/messagehandler.h"
+#include "resources/iteminfo.h"
+
#include <list>
namespace TmwAthena {
@@ -54,7 +56,7 @@ class EquipBackend : public Equipment::Backend
void clear()
{
- for (int i = 0; i < EQUIPMENT_SIZE; i++)
+ for (int i = 0; i < EQUIP_VECTOR_END; i++)
{
if (mEquipment[i] != -1)
{
@@ -83,7 +85,7 @@ class EquipBackend : public Equipment::Backend
}
private:
- int mEquipment[EQUIPMENT_SIZE];
+ int mEquipment[EQUIP_VECTOR_END];
};
/**