player.h rev. 1.9 changed struct player member argp to char *. The
changeset failed to adapt some s_char * operands. Fix.
This commit is contained in:
parent
6fdbf215d0
commit
24a07cd249
9 changed files with 15 additions and 15 deletions
|
@ -706,10 +706,10 @@ att_ask_support(int offset, int *fortp, int *shipp, int *landp,
|
|||
s_char *p;
|
||||
*fortp = *shipp = *landp = *planep = 1;
|
||||
|
||||
if (player->argp[offset] != (s_char *)0) {
|
||||
if ((player->argp[offset + 1] == (s_char *)0) ||
|
||||
(player->argp[offset + 2] == (s_char *)0) ||
|
||||
(player->argp[offset + 3] == (s_char *)0)) {
|
||||
if (player->argp[offset] != NULL) {
|
||||
if ((player->argp[offset + 1] == NULL) ||
|
||||
(player->argp[offset + 2] == NULL) ||
|
||||
(player->argp[offset + 3] == NULL)) {
|
||||
pr("If any support arguments are used, all must be!\n");
|
||||
return RET_SYN;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue