From d6449162225eeeed3f68fb443dcecfdaa235f3be Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 18 Aug 2011 07:40:43 +0800 Subject: Got rid of the superfluous definition of the slot number for tA. --- src/net/tmwa/inventoryhandler.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/net') 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 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]; }; /** -- cgit v1.2.3-70-g09d2