From: Mikko Rasa Date: Thu, 5 Feb 2015 13:06:57 +0000 (+0200) Subject: Don't use bool for a counter variable X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=57e2b569e3a954f84dce5ba750dfae4c8faea952;p=r2c2.git Don't use bool for a counter variable --- diff --git a/source/libr2c2/trainrouter.cpp b/source/libr2c2/trainrouter.cpp index 6af6154..ff3c664 100644 --- a/source/libr2c2/trainrouter.cpp +++ b/source/libr2c2/trainrouter.cpp @@ -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)