summaryrefslogtreecommitdiff
path: root/src/char/char.h
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/char/char.h
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/char/char.h')
-rw-r--r--src/char/char.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/char/char.h b/src/char/char.h
index 6d8a9815c..aedc52fbe 100644
--- a/src/char/char.h
+++ b/src/char/char.h
@@ -72,7 +72,7 @@ struct mmo_map_server {
#define DEFAULT_AUTOSAVE_INTERVAL (300*1000)
-enum {
+enum inventory_table_type {
TABLE_INVENTORY,
TABLE_CART,
TABLE_STORAGE,
@@ -129,7 +129,6 @@ struct char_interface {
DBData (*create_charstatus) (DBKey key, va_list args);
int (*mmo_char_tosql) (int char_id, struct mmo_charstatus* p);
int (*memitemdata_to_sql) (const struct item items[], int max, int id, int tableswitch);
- int (*inventory_to_sql) (const struct item items[], int max, int id);
int (*mmo_gender) (const struct char_session_data *sd, const struct mmo_charstatus *p, char sex);
int (*mmo_chars_fromsql) (struct char_session_data* sd, uint8* buf);
int (*mmo_char_fromsql) (int char_id, struct mmo_charstatus* p, bool load_everything);