diff options
author | Haru <haru@dotalux.com> | 2017-07-17 12:17:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-17 12:17:47 +0200 |
commit | b56dfa3aaf2c6734857f40a8b71f27f22e901c37 (patch) | |
tree | 94cb42041b650e8d4b9365812776c931b9542cc7 /src/char/char.h | |
parent | 39523884e457363b5bec504a8eef3d3e44530408 (diff) | |
parent | 7569afbe6932e55c6a62f0747ea1e7b5ba3c977e (diff) | |
download | hercules-b56dfa3aaf2c6734857f40a8b71f27f22e901c37.tar.gz hercules-b56dfa3aaf2c6734857f40a8b71f27f22e901c37.tar.bz2 hercules-b56dfa3aaf2c6734857f40a8b71f27f22e901c37.tar.xz hercules-b56dfa3aaf2c6734857f40a8b71f27f22e901c37.zip |
Merge pull request #1760 from Smokexyz/memitemtosql-fix
Optimisation of char_memitemdata_to_sql()
Diffstat (limited to 'src/char/char.h')
-rw-r--r-- | src/char/char.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char/char.h b/src/char/char.h index 499b633f7..6b081e536 100644 --- a/src/char/char.h +++ b/src/char/char.h @@ -139,7 +139,8 @@ struct char_interface { void (*set_all_offline_sql) (void); struct DBData (*create_charstatus) (union 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 (*getitemdata_from_sql) (struct item *items, int max, int guid, enum inventory_table_type table); + int (*memitemdata_to_sql) (const struct item items[], int id, enum inventory_table_type table); 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); |