aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/makerank.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/makerank.c')
-rw-r--r--FICS/makerank.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/FICS/makerank.c b/FICS/makerank.c
index 3523782..22dad8a 100644
--- a/FICS/makerank.c
+++ b/FICS/makerank.c
@@ -12,6 +12,7 @@
#include <bsd/string.h>
#endif
+#include "common.h"
#include "makerank.h"
static ENTRY **list;
@@ -31,7 +32,7 @@ GetPlayerInfo(char *fileName, ENTRY *e)
e->computer = 0;
- for (i = 0; i < 4; i++) {
+ for (i = 0; i < ARRAY_SIZE(e->r); i++) {
e->r[i].num = 0;
e->r[i].rating = 0;
}