From 57e2b569e3a954f84dce5ba750dfae4c8faea952 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 5 Feb 2015 15:06:57 +0200 Subject: [PATCH] Don't use bool for a counter variable --- source/libr2c2/trainrouter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2