summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-15 03:51:59 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-15 03:51:59 +0000
commit5a6c73fcc0948c1b570b5df99b191514d06337dd (patch)
tree8c545cf9b0134ead22a19e29ed65042d799b7b78 /src/map/pc.c
parent83e2e93b0fc640dfc733dd67f55bbb9cae3178cf (diff)
downloadhercules-5a6c73fcc0948c1b570b5df99b191514d06337dd.tar.gz
hercules-5a6c73fcc0948c1b570b5df99b191514d06337dd.tar.bz2
hercules-5a6c73fcc0948c1b570b5df99b191514d06337dd.tar.xz
hercules-5a6c73fcc0948c1b570b5df99b191514d06337dd.zip
- Some cleaning of the slave moving code.
- Fixed the icon for Provoke not showing. - Fixed skill_timerskills (type was not being stored, water-ball at least got broken, doing only 1 hit always) - pc_setinventorydata won't try to set data for positions with no item. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5283 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index e4085c48f..fe435d73f 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -490,7 +490,7 @@ int pc_setinventorydata(struct map_session_data *sd)
for(i=0;i<MAX_INVENTORY;i++) {
id = sd->status.inventory[i].nameid;
- sd->inventory_data[i] = itemdb_search(id);
+ sd->inventory_data[i] = id?itemdb_search(id):NULL;
}
return 0;
}