From f03d4212e214245ab1b16c8d0ccb8e087f714f23 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 16 May 2013 16:10:51 -0300 Subject: Fixed Bug #7250 Screwed up. http://hercules.ws/board/tracker/issue-7250-cant-create-party-and-guild/ Follow up 0aee4fd57f2f4135361f4182a08a98cf52ed9d10 Signed-off-by: shennetsind --- src/char/int_pet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/char/int_pet.c') 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. -- cgit v1.2.3-60-g2f50