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:
Markus Armbruster 2005-12-28 22:21:42 +00:00
parent 6fdbf215d0
commit 24a07cd249
9 changed files with 15 additions and 15 deletions

View file

@ -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;
}