fixed a gcc warning in src/pathfind/astarsearch.cpp...
...when compilung under openbsd (fixed bug #19095, thanks George Koehler <kernigh>)
This commit is contained in:
parent
57b2c92900
commit
68acf4157d
2 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ Version 1.9.11+svn:
|
|||
(bug #16299)
|
||||
* Fixed user interface not updated if controller changes (bug #19056)
|
||||
* Miscellaneous and bug fixes:
|
||||
* Fixed bug #19095: fixed a gcc warning when compiling under OpenBSD
|
||||
* Fixed bug #19096: fixed linker errors on OpenBSD when using the CMake
|
||||
build system
|
||||
|
||||
|
|
|
@ -220,7 +220,7 @@ pathfind::plain_route pathfind::a_star_search(const map_location& src, const map
|
|||
next = node(cost, locs[i], n.curr, dst, true, teleports);
|
||||
|
||||
if (in_list) {
|
||||
std::push_heap(pq.begin(), std::find(pq.begin(), pq.end(), index(locs[i])) + 1, node_comp);
|
||||
std::push_heap(pq.begin(), std::find(pq.begin(), pq.end(), static_cast<int>(index(locs[i]))) + 1, node_comp);
|
||||
} else {
|
||||
pq.push_back(index(locs[i]));
|
||||
std::push_heap(pq.begin(), pq.end(), node_comp);
|
||||
|
|
Loading…
Add table
Reference in a new issue