From d913e1ac5c1a6ccd96732fa6f9f4123e1f5f3dbd Mon Sep 17 00:00:00 2001 From: Lance Date: Sun, 2 Apr 2006 00:30:24 +0000 Subject: * 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 --- Changelog-Trunk.txt | 4 ++++ src/map/clif.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 2a8700c1e..9a048316e 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,10 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2006/04/02 + * Workround the warnings for clif.c (what to do? the original codes are ugly.. passing + values as pointers omgwtfbbq). [Lance] + 2006/04/01 * Added a exp-even-share check when someone leaves a party. [Skotlex] * Added function clif_changetraplook to handle changing the appearance of 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;inpc_shopid))->master_nd)){ sprintf(npc_ev, "%s::OnSellItem", nd->exname); for(i=0;istatus.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; -- cgit v1.2.3-70-g09d2