diff options
author | codemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-01 05:43:41 +0000 |
---|---|---|
committer | codemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-01 05:43:41 +0000 |
commit | 6803e755d6805fe86345558a76f7d7b24dbbacc3 (patch) | |
tree | 3fee9f402c3a4e359d93a305a6de499405e015ab /src/login_sql/login.c | |
parent | 3a44a959e2d8f76d5a43a81992e3d17fe50644d0 (diff) | |
download | hercules-6803e755d6805fe86345558a76f7d7b24dbbacc3.tar.gz hercules-6803e755d6805fe86345558a76f7d7b24dbbacc3.tar.bz2 hercules-6803e755d6805fe86345558a76f7d7b24dbbacc3.tar.xz hercules-6803e755d6805fe86345558a76f7d7b24dbbacc3.zip |
* Corrected a few Compiling Warnings [Codemaster]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5405 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql/login.c')
-rw-r--r-- | src/login_sql/login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 258fc9061..ba5b4dcc6 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -499,7 +499,7 @@ int mmo_auth_new(struct mmo_account* account, char sex) if(mysql_field_count(&mysql_handle) == 0 &&
mysql_insert_id(&mysql_handle) < START_ACCOUNT_NUM) {
//Invalid Account ID! Must update it.
- int id = mysql_insert_id(&mysql_handle);
+ int id = (int)mysql_insert_id(&mysql_handle);
sprintf(tmp_sql, "UPDATE `%s` SET `%s`='%d' WHERE `%s`='%d'", login_db, login_db_account_id, START_ACCOUNT_NUM, login_db_account_id, id);
if(mysql_query(&mysql_handle, tmp_sql)){
ShowError("New account %s has an invalid account ID [%d] which could not be updated (account_id must be %d or higher).", account->userid, id, START_ACCOUNT_NUM);
|