|
@@ -255,7 +255,7 @@ class World
|
|
|
explored[origin] = true;
|
|
|
|
|
|
|
|
|
- stack<unsigned int> open;
|
|
|
+ queue<unsigned int> open;
|
|
|
open.push(origin);
|
|
|
|
|
|
int current;
|
|
@@ -264,7 +264,7 @@ class World
|
|
|
unsigned int nbSuccs;
|
|
|
|
|
|
do {
|
|
|
- current = open.top();
|
|
|
+ current = open.front();
|
|
|
open.pop();
|
|
|
|
|
|
nbSuccs = successors(current, succs);
|