From e43261562e928585ac73bd333dae548687d451ec Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 24 May 2002 15:52:33 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@191 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/board.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mbbsd/board.c b/mbbsd/board.c index 42addecf..ec9a44ab 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1,4 +1,4 @@ -/* $Id: board.c,v 1.6 2002/05/13 03:20:04 ptt Exp $ */ +/* $Id: board.c,v 1.7 2002/05/24 15:52:33 ptt Exp $ */ #include #include #include @@ -386,7 +386,7 @@ int class_bid = 0; static int yank_flag = 1; static void load_uidofgid(const int gid, const int type){ boardheader_t *bptr,*currbptr; - int n; + int n, childcount=0; currbptr = &bcache[gid-1]; for(n=0;nnext[type]=bptr; currbptr->parent=&bcache[gid-1]; } + childcount++; currbptr=bptr; } } + bcache[gid-1].childcount=childcount; if(currbptr == &bcache[gid-1]) currbptr->firstchild[type]=(boardheader_t *) ~0; else -- cgit v1.2.3