diff options
-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); |