(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:
Markus Armbruster 2005-11-06 21:20:49 +00:00
parent 47192c9079
commit e23d8a8fac
5 changed files with 4 additions and 15 deletions

View file

@ -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)