| 402 | } |
| 403 | |
| 404 | VehicleWithAI* CStaticMapArcadeViewer::FindObject(int id) |
| 405 | { |
| 406 | int n = _objects.Size(); |
| 407 | for (int i = 0; i < n; i++) |
| 408 | { |
| 409 | VehicleWithAI* veh = _objects[i]; |
| 410 | if (!veh) |
| 411 | { |
| 412 | continue; |
| 413 | } |
| 414 | if (veh->ID() == id) |
| 415 | { |
| 416 | return veh; |
| 417 | } |
| 418 | } |
| 419 | return nullptr; |
| 420 | } |
| 421 | |
| 422 | // drawing |
| 423 |
no test coverage detected