Skip to content

Commit

Permalink
FIX: Crash when sending ships to depots in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jamespetts committed Mar 15, 2017
1 parent 12089e4 commit e5aeb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataobj/route.cc
Expand Up @@ -386,7 +386,7 @@ bool route_t::find_route(karte_t *welt, const koord3d start, test_driver_t *tdri

weg_t* w = to->get_weg(tdriver->get_waytype());

if (is_tall && w->is_height_restricted())
if (is_tall && w && w->is_height_restricted())
{
// Tall vehicles cannot pass under low bridges
continue;
Expand Down

0 comments on commit e5aeb21

Please sign in to comment.