From 47e925473e79c5f395dc4d577f9d8cf823ed0af0 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 15 Oct 2015 08:40:52 +0200 Subject: [PATCH] always use a macro, not magical constants --- src/kernel/curse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/curse.c b/src/kernel/curse.c index fe32ef1e0..09fcdb1d1 100644 --- a/src/kernel/curse.c +++ b/src/kernel/curse.c @@ -334,7 +334,7 @@ void ct_checknames(void) { int i, qi; quicklist *ctl; - for (i = 0; i < 256; ++i) { + for (i = 0; i < MAXCTHASH; ++i) { ctl = cursetypes[i]; for (qi = 0; ctl; ql_advance(&ctl, &qi, 1)) { curse_type *type = (curse_type *)ql_get(ctl, qi);