summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-03-09 21:10:40 +0100
committerHaru <haru@dotalux.com>2016-03-09 22:55:37 +0100
commit7420249057e038fe1cc799938e03d28ffe321e2f (patch)
tree3d3ed65579674568d11d746d5f293ced130e8c63 /src/common
parenta3ad5b4d9fe01b5a17999078bc1cb566c6f5c813 (diff)
downloadhercules-7420249057e038fe1cc799938e03d28ffe321e2f.tar.gz
hercules-7420249057e038fe1cc799938e03d28ffe321e2f.tar.bz2
hercules-7420249057e038fe1cc799938e03d28ffe321e2f.tar.xz
hercules-7420249057e038fe1cc799938e03d28ffe321e2f.zip
Corrected some issues in the item data saving function
- Unique ID could get duplicated (resulting in an apparent item duplication, while it's only unique ID corruption). Fixes #1191 - Removed duplicated code (char_inventory_to_sql, being an almost exact clone of char_memitemdata_to_sql) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mmo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index 8818ea9df..0abae6092 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -1048,4 +1048,8 @@ enum hz_char_ask_name_answer {
#error MAX_ZENY is too big
#endif
+#if MAX_SLOTS < 4
+#error MAX_SLOTS it too small
+#endif
+
#endif /* COMMON_MMO_H */