diff options
author | Haru <haru@dotalux.com> | 2020-06-01 04:43:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 04:43:03 +0200 |
commit | eff687d497d1a1cd2f44552eda70b241583e5656 (patch) | |
tree | 64887f011b0600ad8d081704b1d2d725142699a1 /src | |
parent | 282036381b9b633e6e9b4860f18350f60a2a9cc4 (diff) | |
parent | 7e70cd05b000ad9209ae1fb391b203d671c5be6d (diff) | |
download | hercules-eff687d497d1a1cd2f44552eda70b241583e5656.tar.gz hercules-eff687d497d1a1cd2f44552eda70b241583e5656.tar.bz2 hercules-eff687d497d1a1cd2f44552eda70b241583e5656.tar.xz hercules-eff687d497d1a1cd2f44552eda70b241583e5656.zip |
Merge pull request #2744 from Kenpachi2k13/save_pet_rename_flag
Save a pet's rename flag when returning it to its egg
Diffstat (limited to 'src')
-rw-r--r-- | src/map/pet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pet.c b/src/map/pet.c index 299de42c7..2a9831ed6 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -404,6 +404,7 @@ static int pet_return_egg(struct map_session_data *sd, struct pet_data *pd) if (i != sd->status.inventorySize) { sd->status.inventory[i].attribute &= ~ATTR_BROKEN; sd->status.inventory[i].bound = IBT_NONE; + sd->status.inventory[i].card[3] = pd->pet.rename_flag; } else { // The pet egg wasn't found: it was probably hatched with the old system that deleted the egg. struct item tmp_item = {0}; |