From 919e29e2806ead1798d55bd6749691de3f06c47f Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Mon, 7 May 2007 05:18:39 +0000 Subject: * 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 --- src/map/chat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/chat.c') 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 ); -- cgit v1.2.3-70-g09d2