From 15fa09b8754c3c77b636a4f1466cb8fca0e690f1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Jul 2018 01:21:13 +0300 Subject: Fix issues found by coverity in last commits. --- src/map/packets_struct.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 { -- cgit v1.2.3-60-g2f50