diff options
author | Haru <haru@dotalux.com> | 2016-03-09 21:10:40 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-03-09 22:55:37 +0100 |
commit | 7420249057e038fe1cc799938e03d28ffe321e2f (patch) | |
tree | 3d3ed65579674568d11d746d5f293ced130e8c63 /src/common/mmo.h | |
parent | a3ad5b4d9fe01b5a17999078bc1cb566c6f5c813 (diff) | |
download | hercules-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/mmo.h')
-rw-r--r-- | src/common/mmo.h | 4 |
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 */ |