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/char_sql/int_pet.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/char_sql/int_pet.c')
-rw-r--r-- | src/char_sql/int_pet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/int_pet.c b/src/char_sql/int_pet.c index 4ae7e3fcc..15ecd4853 100644 --- a/src/char_sql/int_pet.c +++ b/src/char_sql/int_pet.c @@ -57,7 +57,7 @@ int inter_pet_tosql(int pet_id, struct s_pet *p) { } else if (pet_id == -1) { //New pet inserted.
if(mysql_field_count(&mysql_handle) == 0 &&
mysql_insert_id(&mysql_handle) != 0) {
- p->pet_id = pet_id = mysql_insert_id(&mysql_handle);
+ p->pet_id = pet_id = (int)mysql_insert_id(&mysql_handle);
} else {
ShowError("inter_pet_tosql: Failed to retrieve new pet_id for '%s'. Pet creation aborted.\n", p->name);
return 0;
|