diff options
Diffstat (limited to 'src/char/int_pet.c')
-rw-r--r-- | src/char/int_pet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/int_pet.c b/src/char/int_pet.c index 8d523a133..2867aed77 100644 --- a/src/char/int_pet.c +++ b/src/char/int_pet.c @@ -39,7 +39,7 @@ int inter_pet_tosql(int pet_id, struct s_pet* p) Sql_ShowDebug(sql_handle); return 0; } - p->pet_id = (int)SQL->NumRows(sql_handle); + p->pet_id = (int)SQL->LastInsertId(sql_handle); } else {// Update pet. |