summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-07-16 00:38:47 +0200
committerGitHub <noreply@github.com>2018-07-16 00:38:47 +0200
commitbcaf5eaa9c8ef65068ab5468d7bd13e2df516cab (patch)
treef3fcd01b55acfeb604d3b1dbcae091a0d99c7358
parent519eb36d223425fbf1cef2a2ef81544032ac0bec (diff)
parent15fa09b8754c3c77b636a4f1466cb8fca0e690f1 (diff)
downloadhercules-bcaf5eaa9c8ef65068ab5468d7bd13e2df516cab.tar.gz
hercules-bcaf5eaa9c8ef65068ab5468d7bd13e2df516cab.tar.bz2
hercules-bcaf5eaa9c8ef65068ab5468d7bd13e2df516cab.tar.xz
hercules-bcaf5eaa9c8ef65068ab5468d7bd13e2df516cab.zip
Merge pull request #2132 from 4144/fixcoverity
Fix issues found by coverity in last commits.
-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 {