From 5f68d7e1a724af13aa4ead16da72bc91bd564e4d Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 13 Mar 2005 19:56:29 +0000 Subject: bugfix: some user will always stay in friends' friend list after logout git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2620 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/talk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 129f9b43..00ff1c83 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -282,7 +282,7 @@ logout_friend_online(userinfo_t * utmp) thefriend = (utmp->friend_online[my_friend_idx] & 0xFFFFFF); utmp->friend_online[my_friend_idx]=0; - if( !(0 <= thefriend && thefriend < MAX_ACTIVE) ) + if( !(0 <= thefriend && thefriend < USHM_SIZE) ) continue; ui = &SHM->uinfo[thefriend]; -- cgit v1.2.3