- Corrected a null_po in pet_equip when trying to equip stuff without a pet.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6886 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex
2006-05-31 12:12:12 +00:00
parent a1b68c9071
commit 79fb721152

View File

@@ -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;