always use a macro, not magical constants

This commit is contained in:
Enno Rehling 2015-10-15 08:40:52 +02:00
parent c9e7a76d9b
commit 47e925473e
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ void ct_checknames(void) {
int i, qi; int i, qi;
quicklist *ctl; quicklist *ctl;
for (i = 0; i < 256; ++i) { for (i = 0; i < MAXCTHASH; ++i) {
ctl = cursetypes[i]; ctl = cursetypes[i];
for (qi = 0; ctl; ql_advance(&ctl, &qi, 1)) { for (qi = 0; ctl; ql_advance(&ctl, &qi, 1)) {
curse_type *type = (curse_type *)ql_get(ctl, qi); curse_type *type = (curse_type *)ql_get(ctl, qi);