]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/designer.cpp
Add Block::has_track and Route::has_track methods
[r2c2.git] / source / designer / designer.cpp
index e5608331023d038d9146ccb53d375555dbf2dc4f..5ea589bcc22c5c292fb76962a1621c50fbe18dcc 100644 (file)
@@ -609,7 +609,7 @@ void Designer::show_route(const Route *route)
        for(set<Track *>::iterator i=ltracks.begin(); i!=ltracks.end(); ++i)
        {
                Track3D &t3d = layout_3d->get_track(**i);
-               if(route && route->get_tracks().count(*i))
+               if(route && route->has_track(**i))
                {
                        t3d.get_path().set_color(GL::Color(0.5, 0.8, 1.0));
                        if((*i)->get_type().is_turnout())