… | … | ||
---|---|---|---|
514 | object * | 514 | object * |
515 | find_object (tag_t i) | 515 | find_object (tag_t i) |
516 | { | 516 | { |
517 | for_all_objects (op) | 517 | for_all_objects (op) |
518 | if (op->count == i) | 518 | if (op->count == i) |
519 | return op; | ||
520 | |||
521 | return 0; | ||
522 | } | ||
523 | |||
524 | /* | ||
525 | * Returns the object which has the uuid equal to the argument. | ||
526 | * MOAR VERRRY slow. | ||
527 | */ | ||
528 | |||
529 | object * | ||
530 | find_object_uuid (UUID i) | ||
531 | { | ||
532 | for_all_objects (op) | ||
533 | if (op->uuid == i) | ||
519 | return op; | 534 | return op; |
520 | 535 | ||
521 | return 0; | 536 | return 0; |
522 | } | 537 | } |
523 | 538 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |