(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
|
@ -205,8 +205,6 @@ struct mchrstr mchr[] = {
|
|||
360, 1500, M_SUPPLY, 0, 2},
|
||||
|
||||
{{0},
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "",
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL,
|
||||
0, 0, 0, 0, 0}
|
||||
};
|
||||
|
||||
int shp_maxno = (sizeof(mchr) / sizeof(struct mchrstr)) - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue