0x004C1D19
| 421 | |
| 422 | // 0x004C1D19 |
| 423 | void removeTrainFromList(Window& self, EntityId head) |
| 424 | { |
| 425 | auto list = std::span<EntityId>(reinterpret_cast<EntityId*>(self.rowInfo), self.rowCount); |
| 426 | |
| 427 | auto newEnd = std::remove_if(list.begin(), list.end(), [head](EntityId el) { return el == head; }); |
| 428 | auto numRemoved = std::distance(newEnd, list.end()); |
| 429 | |
| 430 | if (numRemoved > 0) |
| 431 | { |
| 432 | self.rowCount -= numRemoved; |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | static Widx getTabFromType(VehicleType type) |
| 437 | { |
no test coverage detected