summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/board.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 40bc29e0..54125ab0 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -275,10 +275,11 @@ load_boards(char *key)
#if HOTBOARDCACHE
else if( class_bid == -1 ){
nbrd = (boardstat_t *)malloc(sizeof(boardstat_t) * SHM->nHOTs);
- for( i = 0 ; i < SHM->nHOTs ; ++i )
- if(SHM->HBcache[i]==-1) continue;
- addnewbrdstat(SHM->HBcache[i],
- HasPerm(&bcache[SHM->HBcache[i]]));
+ for( i = 0 ; i < SHM->nHOTs ; ++i ) {
+ if(SHM->HBcache[i] == -1)
+ continue;
+ addnewbrdstat(SHM->HBcache[i], HasPerm(&bcache[SHM->HBcache[i]]));
+ }
}
#endif
else { // general case