summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-22 05:04:43 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-22 05:04:43 +0200
commitafdb49e3bd8dc186626c9defe50af5b6dceb9519 (patch)
tree000361458b8129b17c954afb71254df6f953490f /src
parent42a3bcaf96be26aeed560574d650e61091282995 (diff)
downloadhercules-afdb49e3bd8dc186626c9defe50af5b6dceb9519.tar.gz
hercules-afdb49e3bd8dc186626c9defe50af5b6dceb9519.tar.bz2
hercules-afdb49e3bd8dc186626c9defe50af5b6dceb9519.tar.xz
hercules-afdb49e3bd8dc186626c9defe50af5b6dceb9519.zip
Add check if pet belongs to character in pet_food()
Diffstat (limited to 'src')
-rw-r--r--src/map/pet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index fe803d93f..c6656047c 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -954,6 +954,7 @@ static int pet_food(struct map_session_data *sd, struct pet_data *pd)
{
nullpo_retr(1, sd);
nullpo_retr(1, pd);
+ Assert_retr(1, sd->status.pet_id == pd->pet.pet_id);
int i = pc->search_inventory(sd, pd->petDB->FoodID);