summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-04-05 19:13:34 +0200
committerHaru <haru@dotalux.com>2020-04-05 21:29:52 +0200
commitfb0e6a0172124df95ce32d6ad0b3b4cb85747f6d (patch)
tree6fe8bab9014587acbc09bf0750afabee840c6199 /src/map/pet.c
parent05ad9437527e018fb28cb540c8f74d5f66744d3c (diff)
downloadhercules-fb0e6a0172124df95ce32d6ad0b3b4cb85747f6d.tar.gz
hercules-fb0e6a0172124df95ce32d6ad0b3b4cb85747f6d.tar.bz2
hercules-fb0e6a0172124df95ce32d6ad0b3b4cb85747f6d.tar.xz
hercules-fb0e6a0172124df95ce32d6ad0b3b4cb85747f6d.zip
Initialize pd->pet_hungry_timer to INVALID_TIMER
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index be29d2647..620779765 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -500,6 +500,8 @@ static int pet_data_init(struct map_session_data *sd, struct s_pet *petinfo)
if (pd->petDB->equip_script != NULL)
status_calc_pc(sd, SCO_NONE);
+ pd->pet_hungry_timer = INVALID_TIMER;
+
if (pd->petDB->hungry_delay > 0) {
int interval = pd->petDB->hungry_delay * battle_config.pet_hungry_delay_rate / 100;
pd->pet_hungry_timer = timer->add(timer->gettick() + max(interval, 1), pet->hungry, sd->bl.id, 0);