summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-31 12:12:12 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-31 12:12:12 +0000
commit000f524d06f23f9a889abb340d6b181d39e5cf50 (patch)
tree16bc8e77c576d2e534ecf61eb4b375b4a29050b5 /src/map
parent0f410386039d736e8249b0fd4c2ee7fe39d0bb79 (diff)
downloadhercules-000f524d06f23f9a889abb340d6b181d39e5cf50.tar.gz
hercules-000f524d06f23f9a889abb340d6b181d39e5cf50.tar.bz2
hercules-000f524d06f23f9a889abb340d6b181d39e5cf50.tar.xz
hercules-000f524d06f23f9a889abb340d6b181d39e5cf50.zip
- Corrected a null_po in pet_equip when trying to equip stuff without a pet.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6886 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pet.c2
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;