summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-04-07 23:50:21 +0200
committerGitHub <noreply@github.com>2020-04-07 23:50:21 +0200
commitc8dfb89b21ecfe7379bbdb82f01e4647b872eaac (patch)
treea70b722f5c2815883400dda6fe19700c9a0d4602
parentd3d1927e5ff037195dce99accd511127a6d4d52b (diff)
parentc7ddc54ba87dfaea4ac7ab367606b64b0015ca87 (diff)
downloadhercules-c8dfb89b21ecfe7379bbdb82f01e4647b872eaac.tar.gz
hercules-c8dfb89b21ecfe7379bbdb82f01e4647b872eaac.tar.bz2
hercules-c8dfb89b21ecfe7379bbdb82f01e4647b872eaac.tar.xz
hercules-c8dfb89b21ecfe7379bbdb82f01e4647b872eaac.zip
Merge pull request #2685 from Kenpachi2k13/hatch_pet
Add missing pet ID assignment to inter_pet_fromsql()
-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);