Fixed compile warning.

This commit is contained in:
Sergey Popov 2009-04-23 20:23:32 +00:00
parent a13ef96987
commit ba72303717

View file

@ -157,7 +157,7 @@ paths::route a_star_search(const map_location& src, const map_location& dst,
paths::route route;
if (nodes[index(dst)].g < stop_at) {
DBG_PF << "found solution; calculating it...\n";
route.move_left = nodes[index(dst)].g;
route.move_left = (int)nodes[index(dst)].g;
for (node curr = nodes[index(dst)]; curr.prev != map_location::null_location; curr = nodes[index(curr.prev)]) {
route.steps.push_back(curr.curr);
}