… | |
… | |
3469 | if (trlist == NULL || who->type != PLAYER) |
3469 | if (trlist == NULL || who->type != PLAYER) |
3470 | return; |
3470 | return; |
3471 | |
3471 | |
3472 | for (i = 0, tr = trlist->items; tr != NULL && i < level - 1; tr = tr->next, i++); |
3472 | for (i = 0, tr = trlist->items; tr != NULL && i < level - 1; tr = tr->next, i++); |
3473 | |
3473 | |
3474 | if (tr == NULL || tr->item == NULL) |
3474 | if (!tr || !tr->item) |
3475 | { |
3475 | { |
3476 | /* LOG(llevDebug, "-> no more treasure for %s\n", change_resist_msg[atnr]); */ |
3476 | /* LOG(llevDebug, "-> no more treasure for %s\n", change_resist_msg[atnr]); */ |
3477 | return; |
3477 | return; |
3478 | } |
3478 | } |
3479 | |
3479 | |