X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fdesigner.cpp;h=ac870a469f4e01d72f7efedfc34782cf5d666134;hb=269b667175f68821a3f2b871a097d4899d7abd78;hp=32fe42391d13691d7d1d45a14d614bcd1251fa07;hpb=2220ba2f11705ea9a4e480603d43ab7ed4cf5a89;p=r2c2.git diff --git a/source/designer/designer.cpp b/source/designer/designer.cpp index 32fe423..ac870a4 100644 --- a/source/designer/designer.cpp +++ b/source/designer/designer.cpp @@ -481,7 +481,7 @@ void Designer::button_press(unsigned btn) if(mode==CATALOGUE) { - Object *obj; + Object *obj = 0; if(btn==1) obj = pick_object(pointer); @@ -619,6 +619,7 @@ void Designer::show_route(const Route &route) path->set_color(GL::Color(0.5, 0.8, 1.0)); if(unsigned taddr = (*i)->get_turnout_address()) path->set_path(route.get_turnout(taddr)); + highlight_paths.push_back(path); } } @@ -632,5 +633,6 @@ void Designer::show_zone(const Zone &zone) Track3D &t3d = layout_3d->get_3d(**i); Path3D *path = new Path3D(t3d); path->set_color(GL::Color(0.8, 1.0, 0.5)); + highlight_paths.push_back(path); } }