(nuk_maxno): Variable's value is well-known constant N_MAXNUKE + 1.
Useless, remove. Users changed to check nchr's sentinel, because that's clearer than comparing the index to N_MAXNUKE or sizeof(nchr) / sizeof(*nchr). (nchr): Change sentinel's n_name to NULL.
This commit is contained in:
parent
856539fc54
commit
8c6529ded3
3 changed files with 2 additions and 7 deletions
|
@ -519,7 +519,7 @@ nullify_objects(void)
|
|||
if (opt_NO_OIL)
|
||||
mchr[i].m_flags &= ~M_OIL;
|
||||
}
|
||||
for (i = 0; i < nuk_maxno; i++) {
|
||||
for (i = 0; nchr[i].n_name; i++) {
|
||||
if (opt_NO_HCMS)
|
||||
nchr[i].n_hcm = 0;
|
||||
if (opt_NO_LCMS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue