summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-02 00:30:24 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-02 00:30:24 +0000
commitd913e1ac5c1a6ccd96732fa6f9f4123e1f5f3dbd (patch)
tree3c24f83ad4bab2c527ce434891f0dcaab3b535b8 /src/map
parentc253ebc35ad9ff85631e2c35a968b6001856479b (diff)
downloadhercules-d913e1ac5c1a6ccd96732fa6f9f4123e1f5f3dbd.tar.gz
hercules-d913e1ac5c1a6ccd96732fa6f9f4123e1f5f3dbd.tar.bz2
hercules-d913e1ac5c1a6ccd96732fa6f9f4123e1f5f3dbd.tar.xz
hercules-d913e1ac5c1a6ccd96732fa6f9f4123e1f5f3dbd.zip
* Workround the warnings for clif.c (what to do? the original codes are ugly.. passing values as pointers omgwtfbbq).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5856 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index f43b1afbd..cfdd5657b 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9002,8 +9002,8 @@ void clif_parse_NpcBuyListSend(int fd,struct map_session_data *sd)
if((nd = ((struct npc_data *)map_id2bl(sd->npc_shopid))->master_nd)){
sprintf(npc_ev, "%s::OnBuyItem", nd->exname);
for(i=0;i<n;i++){
- setd_sub(sd, "@bought_nameid", i, (void *)item_list[i*2+1]);
- setd_sub(sd, "@bought_quantity", i, (void *)item_list[i*2]);
+ setd_sub(sd, "@bought_nameid", i, (void *)((int)item_list[i*2+1]));
+ setd_sub(sd, "@bought_quantity", i, (void *)((int)item_list[i*2]));
}
npc_event(sd, npc_ev, 0);
fail = 0;
@@ -9040,8 +9040,8 @@ void clif_parse_NpcSellListSend(int fd,struct map_session_data *sd)
if((nd = ((struct npc_data *)map_id2bl(sd->npc_shopid))->master_nd)){
sprintf(npc_ev, "%s::OnSellItem", nd->exname);
for(i=0;i<n;i++){
- setd_sub(sd, "@sold_nameid", i, (void *)sd->status.inventory[item_list[i*2]-2].nameid);
- setd_sub(sd, "@sold_quantity", i, (void *)item_list[i*2+1]);
+ setd_sub(sd, "@sold_nameid", i, (void *)((int)sd->status.inventory[item_list[i*2]-2].nameid));
+ setd_sub(sd, "@sold_quantity", i, (void *)((int)item_list[i*2+1]));
}
npc_event(sd, npc_ev, 0);
fail = 0;