coverity scan CID 22454 (logically dead code)

This commit is contained in:
Enno Rehling 2015-10-29 08:46:35 +01:00
parent 0328e84c6c
commit 6cccdec4a2
1 changed files with 1 additions and 1 deletions

View File

@ -1578,7 +1578,7 @@ show_allies(const faction * f, const ally * allies, char *buf, size_t size)
WARN_STATIC_BUFFER(); WARN_STATIC_BUFFER();
} }
else { else {
for (h = 1; h < HELP_ALL; h *= 2) { for (h = 1; h <= HELP_TRAVEL; h *= 2) {
int p = MAXPARAMS; int p = MAXPARAMS;
if ((mode & h) == h) { if ((mode & h) == h) {
switch (h) { switch (h) {