| 283 | |
| 284 | |
| 285 | const Livery *GetParentLivery(const Group *g) |
| 286 | { |
| 287 | if (g->parent == GroupID::Invalid()) { |
| 288 | const Company *c = Company::Get(g->owner); |
| 289 | return &c->livery[LS_DEFAULT]; |
| 290 | } |
| 291 | |
| 292 | const Group *pg = Group::Get(g->parent); |
| 293 | return &pg->livery; |
| 294 | } |
| 295 | |
| 296 | |
| 297 | /** |
no test coverage detected