summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-22 04:52:59 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-22 04:52:59 +0200
commit2704438c90e148389e6e686ee40aa5a8a347fbbc (patch)
tree493e48f80fea5d2181bc5ceb56e5e7a6c4c60d0a
parent9a06857cc3ad2ad8f00b52ccc33f6c07342ad985 (diff)
downloadhercules-2704438c90e148389e6e686ee40aa5a8a347fbbc.tar.gz
hercules-2704438c90e148389e6e686ee40aa5a8a347fbbc.tar.bz2
hercules-2704438c90e148389e6e686ee40aa5a8a347fbbc.tar.xz
hercules-2704438c90e148389e6e686ee40aa5a8a347fbbc.zip
Update inventory in pet_return_egg() only if egg was found
-rw-r--r--src/map/pet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 2a9831ed6..21990aebf 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -405,6 +405,7 @@ static int pet_return_egg(struct map_session_data *sd, struct pet_data *pd)
sd->status.inventory[i].attribute &= ~ATTR_BROKEN;
sd->status.inventory[i].bound = IBT_NONE;
sd->status.inventory[i].card[3] = pd->pet.rename_flag;
+ clif->inventoryList(sd);
} else {
// The pet egg wasn't found: it was probably hatched with the old system that deleted the egg.
struct item tmp_item = {0};
@@ -422,7 +423,6 @@ static int pet_return_egg(struct map_session_data *sd, struct pet_data *pd)
}
}
#if PACKETVER >= 20180704
- clif->inventoryList(sd);
clif->send_petdata(sd, pd, 6, 0);
#endif
pd->pet.incubate = 1;