Instead of list use deque in FlowRiver, vector in StationViewWindow.

This commit is contained in:
Jonathan G Rennison
2016-09-13 17:43:26 +01:00
parent a422cb6753
commit 95aad35774
2 changed files with 3 additions and 3 deletions

View File

@@ -1626,7 +1626,7 @@ struct StationViewWindow : public Window {
*/
void SetDisplayedRow(const CargoDataEntry *data)
{
std::list<StationID> stations;
std::vector<StationID> stations;
const CargoDataEntry *parent = data->GetParent();
if (parent->GetParent() == NULL) {
this->displayed_rows.push_back(RowDisplay(&this->expanded_rows, data->GetCargo()));