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

@@ -32,7 +32,7 @@
#include "company_func.h"
#include "pathfinder/npf/aystar.h"
#include "saveload/saveload.h"
#include <list>
#include <deque>
#include <set>
#include "table/strings.h"
@@ -1118,7 +1118,7 @@ static bool FlowRiver(TileIndex spring, TileIndex begin)
SET_MARK(begin);
/* Breadth first search for the closest tile we can flow down to. */
std::list<TileIndex> queue;
std::deque<TileIndex> queue;
queue.push_back(begin);
bool found = false;