Don't use 0 as null pointer constant, part 2
This part replaces E != 0 by E, where E has pointer type.
This commit is contained in:
parent
615681ce16
commit
90f8f2b099
15 changed files with 23 additions and 24 deletions
|
@ -86,7 +86,7 @@ thre(void)
|
|||
xyas(nstr.x, nstr.y, player->cnum), val);
|
||||
continue;
|
||||
}
|
||||
if (val > 0 && (player->argp[3] != 0 && *player->argp[3] != 0))
|
||||
if (val > 0 && player->argp[3] && *player->argp[3])
|
||||
pr("%s old threshold %d\n",
|
||||
xyas(nstr.x, nstr.y, player->cnum), val);
|
||||
sect.sct_dist[type] = thresh;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue