diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-07 05:18:39 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-07 05:18:39 +0000 |
commit | 919e29e2806ead1798d55bd6749691de3f06c47f (patch) | |
tree | aca86014dde0ae6da74bf7d888dde4e039ba681e /src/map/chat.c | |
parent | 4dc600664fc2c4780dc6527041800044ca978b51 (diff) | |
download | hercules-919e29e2806ead1798d55bd6749691de3f06c47f.tar.gz hercules-919e29e2806ead1798d55bd6749691de3f06c47f.tar.bz2 hercules-919e29e2806ead1798d55bd6749691de3f06c47f.tar.xz hercules-919e29e2806ead1798d55bd6749691de3f06c47f.zip |
* Fixed warpwaitingpc not working (bug introduced in r10471).
there was a "sd != NULL" where it should be "sd == NULL"
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10499 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chat.c')
-rw-r--r-- | src/map/chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chat.c b/src/map/chat.c index e66ed7dc3..92901c86e 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -149,7 +149,7 @@ int chat_leavechat(struct map_session_data* sd) cd->users--; pc_setchatid(sd, 0); - if( cd->users == 0 && (*cd->owner)->type==BL_PC ) + if( cd->users == 0 && (*cd->owner)->type == BL_PC ) {// Delete empty chatroom clif_clearchat(cd, 0); map_delobject(cd->bl.id); @@ -158,7 +158,7 @@ int chat_leavechat(struct map_session_data* sd) for( i = leavechar; i < cd->users; i++ ) cd->usersd[i] = cd->usersd[i + 1]; - if( leavechar == 0 && (*cd->owner)->type==BL_PC ) + if( leavechar == 0 && (*cd->owner)->type == BL_PC ) { //Adjust Chat location after owner has been changed. map_delblock( &cd->bl ); |