summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-02 04:24:46 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-02 04:24:46 +0000
commit5ffec3d741ee12ffdf55467dee5245cd50b9f702 (patch)
treecd04f375116d2f97dc8a93e66b3d71ee6b4d5159 /src/map/clif.c
parent771ec0d02a5660a10f27d8545917104f40e802fa (diff)
downloadhercules-5ffec3d741ee12ffdf55467dee5245cd50b9f702.tar.gz
hercules-5ffec3d741ee12ffdf55467dee5245cd50b9f702.tar.bz2
hercules-5ffec3d741ee12ffdf55467dee5245cd50b9f702.tar.xz
hercules-5ffec3d741ee12ffdf55467dee5245cd50b9f702.zip
Applied patch by xazax to clean up various bits of code across mapserver code. (bugreport:4512)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14438 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index dfc464fb9..a13811913 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -4191,7 +4191,7 @@ int clif_outsight(struct block_list *bl,va_list ap)
{ //tsd has lost sight of the bl object.
switch(bl->type){
case BL_PC:
- if (((TBL_PC*)bl)->vd.class_ != INVISIBLE_CLASS)
+ if (sd->vd.class_ != INVISIBLE_CLASS)
clif_clearunit_single(bl->id,0,tsd->fd);
if(sd->chatID){
struct chat_data *cd;
@@ -13128,10 +13128,8 @@ void clif_parse_cashshop_buy(int fd, struct map_session_data *sd)
{
int fail = 0, amount, points;
short nameid;
- struct npc_data *nd;
nullpo_retv(sd);
- nd = (struct npc_data *)map_id2bl(sd->npc_shopid);
nameid = RFIFOW(fd,2);
amount = RFIFOW(fd,4);
points = RFIFOL(fd,6); // Not Implemented. Should be 0