summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-28 12:25:36 -0200
committershennetsind <ind@henn.et>2013-10-28 12:25:36 -0200
commit25aca4d72678d65a5d90d8b02d57d32bf192211f (patch)
tree8a1c566303f4543316441b821817070be6d61a53
parent90dc5deba7769e4d5040cc7483980d72bde00dfc (diff)
downloadhercules-25aca4d72678d65a5d90d8b02d57d32bf192211f.tar.gz
hercules-25aca4d72678d65a5d90d8b02d57d32bf192211f.tar.bz2
hercules-25aca4d72678d65a5d90d8b02d57d32bf192211f.tar.xz
hercules-25aca4d72678d65a5d90d8b02d57d32bf192211f.zip
Fixed Bug #7788
http://hercules.ws/board/tracker/issue-7788-storage-problem/ Credits to Haruna! Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--src/map/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 414884394..8c2dc21b2 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -2476,7 +2476,7 @@ void clif_storagelist(struct map_session_data* sd, struct item* items, int items
if( normal ) {
storelist_normal.PacketType = storagelistnormalType;
- storelist_normal.PacketLength = ( sizeof( storelist_normal ) - ARRAYLENGTH( storelist_normal.list ) ) + (sizeof(struct NORMALITEM_INFO) * normal);
+ storelist_normal.PacketLength = ( sizeof( storelist_normal ) - sizeof( storelist_normal.list ) ) + (sizeof(struct NORMALITEM_INFO) * normal);
#if PACKETVER >= 20120925
safestrncpy(storelist_normal.name, "Storage", NAME_LENGTH);
#endif
@@ -2485,7 +2485,7 @@ void clif_storagelist(struct map_session_data* sd, struct item* items, int items
if( equip ) {
storelist_equip.PacketType = storagelistequipType;
- storelist_equip.PacketLength = ( sizeof( storelist_equip ) - ARRAYLENGTH( storelist_equip.list ) ) + (sizeof(struct EQUIPITEM_INFO) * equip);
+ storelist_equip.PacketLength = ( sizeof( storelist_equip ) - sizeof( storelist_equip.list ) ) + (sizeof(struct EQUIPITEM_INFO) * equip);
#if PACKETVER >= 20120925
safestrncpy(storelist_equip.name, "Storage", NAME_LENGTH);
@@ -8885,7 +8885,7 @@ void clif_viewequip_ack(struct map_session_data* sd, struct map_session_data* ts
}
viewequip_list.PacketType = viewequipackType;
- viewequip_list.PacketLength = ( sizeof( viewequip_list ) - ARRAYLENGTH( viewequip_list.list ) ) + ( sizeof(struct EQUIPITEM_INFO) * equip );
+ viewequip_list.PacketLength = ( sizeof( viewequip_list ) - sizeof( viewequip_list.list ) ) + ( sizeof(struct EQUIPITEM_INFO) * equip );
safestrncpy(viewequip_list.characterName, tsd->status.name, NAME_LENGTH);