]> git.tdb.fi Git - r2c2.git/commitdiff
Fix a stupid comparison mistake in Route
authorMikko Rasa <tdb@tdb.fi>
Tue, 23 Nov 2010 21:29:34 +0000 (21:29 +0000)
committerMikko Rasa <tdb@tdb.fi>
Tue, 23 Nov 2010 21:29:34 +0000 (21:29 +0000)
source/libr2c2/route.cpp

index 6809c0ad7fcd13379ca42a29070f3d0ee3160b3e..ad6f81169e5a36221e05934ba5f4cb0e7d6439e3 100644 (file)
@@ -365,7 +365,7 @@ unsigned Route::check_validity(Track &trk) const
                                                        const TrackType::Endpoint &ep2 = tlinks[j]->get_type().get_endpoint(tlinks[j]->get_endpoint_by_link(**i));
                                                        path = get_turnout(tid2);
                                                        // Ignore a linked turnout with some other path set
-                                                       if(path>0 && !(ep2.paths&(1<<path)))
+                                                       if(path>=0 && !(ep2.paths&(1<<path)))
                                                                continue;
                                                }