… | |
… | |
1479 | for (tmp = op->inv; tmp != NULL; tmp = tmp->below) |
1479 | for (tmp = op->inv; tmp != NULL; tmp = tmp->below) |
1480 | { |
1480 | { |
1481 | /* can't toss invisible or inv-locked items */ |
1481 | /* can't toss invisible or inv-locked items */ |
1482 | if (tmp->invisible || QUERY_FLAG (tmp, FLAG_INV_LOCKED)) |
1482 | if (tmp->invisible || QUERY_FLAG (tmp, FLAG_INV_LOCKED)) |
1483 | continue; |
1483 | continue; |
1484 | if (!request || !strcmp (query_name (tmp), request) || !strcmp (tmp->name, request)) |
1484 | if (!request || !strcmp (query_name (tmp), request) || !strcmp (&tmp->name, request)) |
1485 | break; |
1485 | break; |
1486 | } |
1486 | } |
1487 | } |
1487 | } |
1488 | |
1488 | |
1489 | /* this should prevent us from throwing away |
1489 | /* this should prevent us from throwing away |