(pln_maxno): Variable's value is well-known constant N_MAXPLANE + 1.
Useless, remove. Users changed to check plchr's sentinel, because that's clearer than comparing the index to N_MAXPLANE or sizeof(plchr) / sizeof(*plchr). (plchr): Change sentinel's pl_name to NULL.
This commit is contained in:
parent
6f1df90b69
commit
47192c9079
5 changed files with 5 additions and 7 deletions
|
@ -495,7 +495,7 @@ nullify_objects(void)
|
|||
dchr[SCT_OIL].d_cost = -1;
|
||||
dchr[SCT_REFINE].d_cost = -1;
|
||||
}
|
||||
for (i = 0; i < pln_maxno; i++) {
|
||||
for (i = 0; i < plchr[i].pl_name; i++) {
|
||||
if (opt_NO_HCMS)
|
||||
plchr[i].pl_hcm = 0;
|
||||
if (opt_NO_LCMS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue