(prd_maxno): Variable's value is well-known constant P_MDUST + 2.
Useless, remove. Users changed to check pchr's sentinel, because that's clearer than comparing the index to P_MDUST or sizeof(pchr) / sizeof(*pchr). (pchr): Change sentinel's p_name and p_sname to NULL. Sentinel checks changed.
This commit is contained in:
parent
23f134aa75
commit
19953e6c22
4 changed files with 3 additions and 8 deletions
|
@ -92,7 +92,5 @@ struct pchrstr pchr[] = {
|
|||
I_DUST, -1, 0, offsetof(struct sctstr, sct_gmin), 20, -1, 0, 0, 75,
|
||||
"gold dust", "dust",},
|
||||
{{I_NONE, I_NONE, I_NONE}, {0, 0, 0},
|
||||
I_NONE, 0, 0, 0, 0, 0, 0, 0, 0, "", "",}
|
||||
I_NONE, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL,}
|
||||
};
|
||||
|
||||
int prd_maxno = (sizeof(pchr) / sizeof(struct pchrstr)) - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue