]> git.tdb.fi Git - r2c2.git/commitdiff
Don't use bool for a counter variable
authorMikko Rasa <tdb@tdb.fi>
Thu, 5 Feb 2015 13:06:57 +0000 (15:06 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 5 Feb 2015 13:06:57 +0000 (15:06 +0200)
source/libr2c2/trainrouter.cpp

index 6af6154c862a29af52fb0e59bccc09b0f97b1ff2..ff3c66402ad98b84e830cbe04dd77cd0bc0d8cca 100644 (file)
@@ -443,7 +443,7 @@ Route *TrainRouter::create_lead_route(Route *lead, const Route *target)
                lead->set_temporary(true);
        }
 
-       bool target_tracks = 0;
+       unsigned target_tracks = 0;
        for(TrackIter i=train.get_block_allocator().first().track_iter(); (target_tracks<2 && i); i=i.next())
        {
                if(i->get_block().get_train()!=&train)