diff options
author | hemagx <hemagx2@gmail.com> | 2016-07-09 01:14:07 +0200 |
---|---|---|
committer | hemagx <hemagx2@gmail.com> | 2016-07-09 02:09:19 +0200 |
commit | f8f496474827be29a5fcb18935877ae522eaa72a (patch) | |
tree | 42ea48dccf1902d5bd102abc1837be9203c74c7f /src | |
parent | 4a44345474d7badbb19045c11d62f0d3ee973790 (diff) | |
download | hercules-f8f496474827be29a5fcb18935877ae522eaa72a.tar.gz hercules-f8f496474827be29a5fcb18935877ae522eaa72a.tar.bz2 hercules-f8f496474827be29a5fcb18935877ae522eaa72a.tar.xz hercules-f8f496474827be29a5fcb18935877ae522eaa72a.zip |
db2sql plugin now will dump equip_job as Decimalinstead of Hexadecimal
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/db2sql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/db2sql.c b/src/plugins/db2sql.c index 3495e4abb..af5ab99af 100644 --- a/src/plugins/db2sql.c +++ b/src/plugins/db2sql.c @@ -291,7 +291,7 @@ int itemdb2sql_sub(struct config_setting_t *entry, int n, const char *source) } else { ui64 = UINT64_MAX; } - StrBuf->Printf(&buf, "'0x%"PRIX64"',", ui64); + StrBuf->Printf(&buf, "'%"PRIu64"',", ui64); // equip_upper if (libconfig->setting_lookup_int(entry, "Upper", &i32) && i32 >= 0) @@ -625,7 +625,7 @@ int mobdb2sql_sub(struct config_setting_t *mobt, int n, const char *source) StrBuf->Printf(&buf, "%d,", md->status.def_ele + 20 * md->status.ele_lv); // Mode - StrBuf->Printf(&buf, "0x%X,", md->status.mode); + StrBuf->Printf(&buf, "%u,", md->status.mode); // Speed StrBuf->Printf(&buf, "%u,", md->status.speed); |