summaryrefslogtreecommitdiff
path: root/src/char/inter.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-09 00:55:03 -0300
committershennetsind <ind@henn.et>2013-06-09 00:55:03 -0300
commit2db09c2e6442aa3abe573d35a3a5a1c6fa3db5fa (patch)
treec7f5dbb515a926c04e2cd4f38872730e0e7c3429 /src/char/inter.h
parent89a571a3c5d4c9366843a462c40efdebb24d17fe (diff)
downloadhercules-2db09c2e6442aa3abe573d35a3a5a1c6fa3db5fa.tar.gz
hercules-2db09c2e6442aa3abe573d35a3a5a1c6fa3db5fa.tar.bz2
hercules-2db09c2e6442aa3abe573d35a3a5a1c6fa3db5fa.tar.xz
hercules-2db09c2e6442aa3abe573d35a3a5a1c6fa3db5fa.zip
Fixed Bug #7319
Special Thanks to KeiKun~! http://hercules.ws/board/tracker/issue-7319-db-name/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/char/inter.h')
-rw-r--r--src/char/inter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char/inter.h b/src/char/inter.h
index de27b0473..f6663813a 100644
--- a/src/char/inter.h
+++ b/src/char/inter.h
@@ -7,6 +7,7 @@
struct accreg;
#include "../common/sql.h"
+#include "char.h"
int inter_init_sql(const char *file);
void inter_final(void);
@@ -32,7 +33,7 @@ uint64 inter_chk_lastuid(int8 flag, uint64 value);
#define dbUpdateUid(handler_)\
{ \
uint64 unique_id_ = inter_chk_lastuid(0, 0); \
- if (unique_id_ && SQL_ERROR == SQL->Query(handler_, "UPDATE `interreg` SET `value`='%"PRIu64"' WHERE `varname`='unique_id'", unique_id_)) \
+ if (unique_id_ && SQL_ERROR == SQL->Query(handler_, "UPDATE `%s` SET `value`='%"PRIu64"' WHERE `varname`='unique_id'", interreg_db, unique_id_)) \
Sql_ShowDebug(handler_);\
}
#else