summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-01-21 07:58:50 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-01-21 07:58:50 +0000
commit835e46af0453918918d6f2ef8b06d9b7af2bfbb5 (patch)
treeee115ae7159629431c795b1303c0c7c89f61f772 /src/map/clif.c
parent0d5752d71038747263ff56c43d75c8e2e42d777c (diff)
downloadhercules-835e46af0453918918d6f2ef8b06d9b7af2bfbb5.tar.gz
hercules-835e46af0453918918d6f2ef8b06d9b7af2bfbb5.tar.bz2
hercules-835e46af0453918918d6f2ef8b06d9b7af2bfbb5.tar.xz
hercules-835e46af0453918918d6f2ef8b06d9b7af2bfbb5.zip
Fixed a null pointer crash in r13463 (thanks to Ramsey for reporting it).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13467 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 82fd4ca27..6038a4947 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -259,7 +259,7 @@ int clif_send(const uint8* buf, int len, struct block_list* bl, enum send_target
iter = mapit_getallusers();
while( (tsd = (TBL_PC*)mapit_next(iter)) != NULL )
{
- if( sd->bl.m == tsd->bl.m && packet_db[tsd->packet_ver][RBUFW(buf,0)].len )
+ if( bl->m == tsd->bl.m && packet_db[tsd->packet_ver][RBUFW(buf,0)].len )
{ // packet must exist for the client version
WFIFOHEAD(tsd->fd, len);
memcpy(WFIFOP(tsd->fd,0), buf, len);
@@ -384,7 +384,7 @@ int clif_send(const uint8* buf, int len, struct block_list* bl, enum send_target
iter = mapit_getallusers();
while( (tsd = (TBL_PC*)mapit_next(iter)) != NULL )
{
- if( type == DUEL_WOS && sd->bl.id == tsd->bl.id )
+ if( type == DUEL_WOS && bl->id == tsd->bl.id )
continue;
if( sd->duel_group == tsd->duel_group && packet_db[tsd->packet_ver][RBUFW(buf,0)].len )
{ // packet must exist for the client version