summaryrefslogtreecommitdiff
path: root/src/char_sql/int_pet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql/int_pet.c')
-rw-r--r--src/char_sql/int_pet.c2
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;