summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorIbrahim Zidan <brahem@aotsw.com>2019-04-08 04:42:12 +0200
committerIbrahim Zidan <brahem@aotsw.com>2019-04-10 17:27:53 +0200
commit112b19df8acb95e5599927fc4b505d4ca2e610a4 (patch)
tree70f22bfd8e9732e35b978bbce43e387914e2b3a0 /src/map/clif.c
parent5410de9d04124ce34f58173d616c21088a1482ee (diff)
downloadhercules-112b19df8acb95e5599927fc4b505d4ca2e610a4.tar.gz
hercules-112b19df8acb95e5599927fc4b505d4ca2e610a4.tar.bz2
hercules-112b19df8acb95e5599927fc4b505d4ca2e610a4.tar.xz
hercules-112b19df8acb95e5599927fc4b505d4ca2e610a4.zip
Fix direct calls to clif_send in clif.c
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 53c2c6b23..38d0215d3 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -2978,12 +2978,10 @@ static void clif_storageItems(struct map_session_data *sd, enum inventory_type t
nullpo_retv(items);
for (int i = 0, normal_count = 0, equip_count = 0; i < items_length; ++i) {
- struct item_data *itd;
-
if (items[i].nameid == 0)
continue;
- itd = itemdb->search(items[i].nameid);
+ struct item_data *itd = itemdb->search(items[i].nameid);
if (!itemdb->isstackable2(itd))
clif->item_equip(i + 1, &storelist_equip.list[equip_count++], &items[i], itd, itd->equip);
@@ -7125,7 +7123,7 @@ static void clif_party_job_and_level(struct map_session_data *sd)
WBUFW(buf, 6) = sd->status.class;
WBUFW(buf, 8) = sd->status.base_level;
- clif_send(buf, packet_len(0xabd), &sd->bl, PARTY);
+ clif->send(buf, packet_len(0xabd), &sd->bl, PARTY);
#endif
}
@@ -21630,7 +21628,7 @@ static void clif_hat_effect_single(struct block_list *bl, uint16 effectId, bool
WBUFB(buf,8) = enable;
WBUFL(buf,9) = effectId;
- clif_send(buf, 13, bl, AREA);
+ clif->send(buf, 13, bl, AREA);
#endif
}