summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c2
1 files changed, 1 insertions, 1 deletions
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];