Instead of list use deque in FlowRiver, vector in StationViewWindow.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user