… | |
… | |
1352 | */ |
1352 | */ |
1353 | object * |
1353 | object * |
1354 | find_arrow (object *op, const char *type) |
1354 | find_arrow (object *op, const char *type) |
1355 | { |
1355 | { |
1356 | for (object *tmp = op->inv; tmp; tmp = tmp->below) |
1356 | for (object *tmp = op->inv; tmp; tmp = tmp->below) |
1357 | if (tmp->type == ARROW && !strcmp (tmp->race, type)) |
1357 | if (tmp->type == ARROW && !strcmp (&tmp->race, type)) |
1358 | return splay (tmp); |
1358 | return splay (tmp); |
1359 | |
1359 | |
1360 | for (object *tmp = op->inv; tmp; tmp = tmp->below) |
1360 | for (object *tmp = op->inv; tmp; tmp = tmp->below) |
1361 | if (tmp->type == CONTAINER && QUERY_FLAG (tmp, FLAG_APPLIED) && !strcmp (tmp->race, type)) |
1361 | if (tmp->type == CONTAINER && QUERY_FLAG (tmp, FLAG_APPLIED) && !strcmp (&tmp->race, type)) |
1362 | if (object *arrow = find_arrow (tmp, type)) |
1362 | if (object *arrow = find_arrow (tmp, type)) |
1363 | { |
1363 | { |
1364 | splay (tmp); |
1364 | splay (tmp); |
1365 | return arrow; |
1365 | return arrow; |
1366 | } |
1366 | } |