diff options
Diffstat (limited to 'util/boardlist.c')
-rw-r--r-- | util/boardlist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/boardlist.c b/util/boardlist.c index 606a0192..b6aae6ee 100644 --- a/util/boardlist.c +++ b/util/boardlist.c @@ -9,7 +9,9 @@ load_uidofgid(const int gid, const int type) int n, childcount = 0; currbptr = &bcache[gid - 1]; for (n = 0; n < numboards; ++n) { - if( !(bptr = SHM->bsorted[type][n]) || bptr->brdname[0] == '\0' ) + if(SHM->bsorted[type][n]<0) continue; + bptr = &SHM->bcache[SHM->bsorted[type][n]]; + if( bptr->brdname[0] == '\0' ) continue; if (bptr->gid == gid) { if (currbptr == &bcache[gid - 1]) |