(shp_maxno): Variable's value is well-known constant N_MAXSHIPS + 1.
Useless, remove. Users changed to check mchr's sentinel, because that's clearer than comparing the index to N_MAXSHIPS or sizeof(mchr) / sizeof(*mchr). (mchr): Change sentinel's m_name to NULL.
This commit is contained in:
parent
47192c9079
commit
e23d8a8fac
5 changed files with 4 additions and 15 deletions
|
@ -511,7 +511,7 @@ nullify_objects(void)
|
|||
/* Fix up the military values */
|
||||
lchr[i].l_mil = lchr[i].l_item[I_MILIT];
|
||||
}
|
||||
for (i = 0; i < shp_maxno; i++) {
|
||||
for (i = 0; i < mchr[i].m_name; i++) {
|
||||
if (opt_NO_HCMS)
|
||||
mchr[i].m_hcm = 0;
|
||||
if (opt_NO_LCMS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue