From a4c12809451b878fec98141bf7f7df0ba9acdcc8 Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 11 Jan 2008 22:29:47 +0000 Subject: (svn r11815) -Codechange (r11802): some compilers were giving a false warning about uninitialized variable --- src/signal.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/signal.cpp b/src/signal.cpp index b3852037d..b4e0bcfb6 100644 --- a/src/signal.cpp +++ b/src/signal.cpp @@ -462,15 +462,13 @@ static bool UpdateSignalsInBuffer() Owner owner = OWNER_NONE; // owner whose signals we are updating - while (!_globset.IsEmpty()) { + TileIndex tile; + DiagDirection dir; + + while (_globset.Get(&tile, &dir)) { assert(_tbuset.IsEmpty()); assert(_tbdset.IsEmpty()); - TileIndex tile; - DiagDirection dir; - - _globset.Get(&tile, &dir); - /* After updating signal, data stored are always MP_RAILWAY with signals. * Other situations happen when data are from outside functions - * modification of railbits (including both rail building and removal), -- cgit v1.2.3-70-g09d2