diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-11-22 15:44:17 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-11-22 15:44:17 +0000 |
commit | 951a736ea97701dcde48c6085a596de96bafce45 (patch) | |
tree | 4aa30fc79780452937ea476e68b1a3013bc9c57c /src/map/pet.c | |
parent | 82ed8e76484c53edb394191d95da9d1fad77bbe1 (diff) | |
download | hercules-951a736ea97701dcde48c6085a596de96bafce45.tar.gz hercules-951a736ea97701dcde48c6085a596de96bafce45.tar.bz2 hercules-951a736ea97701dcde48c6085a596de96bafce45.tar.xz hercules-951a736ea97701dcde48c6085a596de96bafce45.zip |
* Hunted down the simpler 64bit pointer truncations.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13380 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pet.c')
-rw-r--r-- | src/map/pet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pet.c b/src/map/pet.c index 8c9ce1610..7089875c9 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -955,7 +955,7 @@ static int pet_delay_item_drop(int tid, unsigned int tick, int id, intptr data) { struct item_drop_list *list; struct item_drop *ditem, *ditem_prev; - list=(struct item_drop_list *)id; + list=(struct item_drop_list *)data; ditem = list->item; while (ditem) { map_addflooritem(&ditem->item_data,ditem->item_data.amount, @@ -1012,7 +1012,7 @@ int pet_lootitem_drop(struct pet_data *pd,struct map_session_data *sd) pd->ud.canact_tick = gettick()+10000; // 10*1000msの間拾わない if (dlist->item) - add_timer(gettick()+540,pet_delay_item_drop,(int)dlist,0); + add_timer(gettick()+540,pet_delay_item_drop,0,(intptr)dlist); else ers_free(item_drop_list_ers, dlist); return 1; |