summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authormarkzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-01-08 05:31:06 +0000
committermarkzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-01-08 05:31:06 +0000
commit5d1712c1483dd106d067256db5728c41e0676177 (patch)
treeaf54c995977893556d030f7ee75398a76d6bb895 /src/map/itemdb.c
parenteaf2728d7f5b47e316b07608cb264bc8de2dd4cc (diff)
downloadhercules-5d1712c1483dd106d067256db5728c41e0676177.tar.gz
hercules-5d1712c1483dd106d067256db5728c41e0676177.tar.bz2
hercules-5d1712c1483dd106d067256db5728c41e0676177.tar.xz
hercules-5d1712c1483dd106d067256db5728c41e0676177.zip
* Renaming variable name from nsiuid to unique_id for better understanding of its meaning, as requested on tid:69380.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17086 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 810e85a4a..68baae1e1 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -1261,7 +1261,7 @@ static int itemdb_read_sqldb(void) {
* 2 set new value bypassing anything
* 3/other return last value
*------------------------------------------*/
-uint64 itemdb_nsiuid(int8 flag, int64 value) {
+uint64 itemdb_unique_id(int8 flag, int64 value) {
static uint64 item_uid = 0;
if(flag)
@@ -1280,18 +1280,18 @@ uint64 itemdb_nsiuid(int8 flag, int64 value) {
int itemdb_uid_load(){
char * uid;
- if (SQL_ERROR == Sql_Query(mmysql_handle, "SELECT `value` FROM `interreg` WHERE `varname`='nsiuid'"))
+ if (SQL_ERROR == Sql_Query(mmysql_handle, "SELECT `value` FROM `interreg` WHERE `varname`='unique_id'"))
Sql_ShowDebug(mmysql_handle);
if( SQL_SUCCESS != Sql_NextRow(mmysql_handle) )
{
- ShowError("itemdb_uid_load: Unable to fetch nsiuid data\n");
+ ShowError("itemdb_uid_load: Unable to fetch unique_id data\n");
Sql_FreeResult(mmysql_handle);
return -1;
}
Sql_GetData(mmysql_handle, 0, &uid, NULL);
- itemdb_nsiuid(1, (uint64)strtoull(uid, NULL, 10));
+ itemdb_unique_id(1, (uint64)strtoull(uid, NULL, 10));
Sql_FreeResult(mmysql_handle);
return 0;