summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-06 04:15:56 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-14 06:00:50 +0300
commit172f8c8ac189e1f6590324eb0aca14cffdba3083 (patch)
tree28145c62104455d9ab69c2f8f3b75e8d206a1bf8 /src/map/clif.c
parent27fb22d9f492cffe206594e5af0f854cf8fa3ce5 (diff)
downloadhercules-172f8c8ac189e1f6590324eb0aca14cffdba3083.tar.gz
hercules-172f8c8ac189e1f6590324eb0aca14cffdba3083.tar.bz2
hercules-172f8c8ac189e1f6590324eb0aca14cffdba3083.tar.xz
hercules-172f8c8ac189e1f6590324eb0aca14cffdba3083.zip
Add compile time validation for packet ZC_ITEM_PREVIEW.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index d4c378f27..9f1038d2c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -21971,7 +21971,7 @@ static void clif_item_preview(struct map_session_data *sd, int n)
Assert_retv(n >= 0 && n < MAX_INVENTORY);
struct PACKET_ZC_ITEM_PREVIEW p;
- p.packetType = itemPreview;
+ p.packetType = HEADER_ZC_ITEM_PREVIEW;
p.index = n + 2;
#if PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 || PACKETVER_ZERO_NUM >= 20181024
p.isDamaged = (sd->status.inventory[n].attribute & ATTR_BROKEN) != 0 ? 1 : 0;