mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 17:29:39 +00:00
SCI: Changed the check for vertex_min into an assert (thanks wjp)
svn-id: r53504
This commit is contained in:
parent
db369838e2
commit
7f43ed3f9d
@ -1311,8 +1311,10 @@ static void AStar(PathfindingState *s) {
|
||||
}
|
||||
}
|
||||
|
||||
assert(vertex_min != 0); // the vertex cost should never be bigger than HUGE_DISTANCE
|
||||
|
||||
// Check if we are done
|
||||
if (vertex_min == s->vertex_end || !vertex_min)
|
||||
if (vertex_min == s->vertex_end)
|
||||
break;
|
||||
|
||||
// Move vertex from set open to set closed
|
||||
|
Loading…
Reference in New Issue
Block a user