summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/char/int_pet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/char/int_pet.c b/src/char/int_pet.c
index 176025f13..8b42bac1d 100644
--- a/src/char/int_pet.c
+++ b/src/char/int_pet.c
@@ -194,6 +194,7 @@ static int inter_pet_fromsql(int pet_id, struct s_pet *p)
}
SQL->StmtFree(stmt);
+ p->pet_id = pet_id;
if (chr->show_save_log)
ShowInfo("Pet loaded %d - %s.\n", pet_id, p->name);