… | |
… | |
3542 | |
3542 | |
3543 | case CFAPI_PARTY_PROP_PLAYER: |
3543 | case CFAPI_PARTY_PROP_PLAYER: |
3544 | *type = CFAPI_PPLAYER; |
3544 | *type = CFAPI_PPLAYER; |
3545 | obarg = va_arg (args, object *); |
3545 | obarg = va_arg (args, object *); |
3546 | |
3546 | |
3547 | pl = (obarg ? obarg->contr : first_player); |
3547 | pl = (obarg ? (player *)obarg->contr : first_player); |
3548 | rv = NULL; |
3548 | rv = NULL; |
3549 | for (; pl != NULL; pl = pl->next) |
3549 | for (; pl != NULL; pl = pl->next) |
3550 | if (pl->ob->contr->party == party) |
3550 | if (pl->ob->contr->party == party) |
3551 | { |
3551 | { |
3552 | rv = (void *) pl; |
3552 | rv = (void *) pl; |