summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-16 01:21:13 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-16 01:21:13 +0300
commit15fa09b8754c3c77b636a4f1466cb8fca0e690f1 (patch)
treef3fcd01b55acfeb604d3b1dbcae091a0d99c7358 /src/map/packets_struct.h
parent519eb36d223425fbf1cef2a2ef81544032ac0bec (diff)
downloadhercules-15fa09b8754c3c77b636a4f1466cb8fca0e690f1.tar.gz
hercules-15fa09b8754c3c77b636a4f1466cb8fca0e690f1.tar.bz2
hercules-15fa09b8754c3c77b636a4f1466cb8fca0e690f1.tar.xz
hercules-15fa09b8754c3c77b636a4f1466cb8fca0e690f1.zip
Fix issues found by coverity in last commits.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 6adef314a..27c099a9e 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -1942,7 +1942,9 @@ struct PACKET_ZC_ADD_ITEM_TO_STORE {
uint8 damaged;
uint8 refine;
struct EQUIPSLOTINFO slot;
+#if PACKETVER >= 20150226
struct ItemOptions option_data[MAX_ITEM_OPTIONS];
+#endif
} __attribute__((packed));
struct PACKET_ZC_MVP_GETTING_ITEM {
@@ -1984,7 +1986,9 @@ struct PACKET_ZC_ADD_ITEM_TO_CART {
uint8 damaged;
uint8 refine;
struct EQUIPSLOTINFO slot;
+#if PACKETVER >= 20150226
struct ItemOptions option_data[MAX_ITEM_OPTIONS];
+#endif
} __attribute__((packed));
struct PACKET_CZ_REQMAKINGITEM {