Skip to content

Commit

Permalink
FIX do not stop route_search too early
Browse files Browse the repository at this point in the history
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@8290 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information
Dwachs committed Aug 11, 2017
1 parent 85497d5 commit 8134eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simhalt.cc
Expand Up @@ -1622,7 +1622,7 @@ void haltestelle_t::search_route_resumable( ware_t &ware )
// for all halts with halt_data.weight < explored_weight one of the best routes is found
const uint16 explored_weight = open_list.empty() ? 65535u : open_list.front().aggregate_weight;

if (best_destination_weight <= explored_weight) {
if (best_destination_weight <= explored_weight && best_destination_weight < 65535u) {
// we explored best route to this destination in last run
// (any other not yet explored connection will have larger weight)
// no need to search route for this ware
Expand Down

0 comments on commit 8134eaa

Please sign in to comment.