diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/pet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c index 8fe9c9c72..3f88cfb41 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -715,7 +715,7 @@ int pet_equipitem(struct map_session_data *sd,int index) nullpo_retr(1, sd);
pd = sd->pd;
- nullpo_retr(1, pd);
+ if (!pd) return 1;
nameid = sd->status.inventory[index].nameid;
|