diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-22 05:04:43 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-22 05:04:43 +0200 |
commit | afdb49e3bd8dc186626c9defe50af5b6dceb9519 (patch) | |
tree | 000361458b8129b17c954afb71254df6f953490f /src | |
parent | 42a3bcaf96be26aeed560574d650e61091282995 (diff) | |
download | hercules-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.c | 1 |
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); |