diff options
author | smatz <smatz@openttd.org> | 2008-01-11 22:29:47 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-01-11 22:29:47 +0000 |
commit | a4c12809451b878fec98141bf7f7df0ba9acdcc8 (patch) | |
tree | ae9caf598b12cc708365a91d46532bf730fd76b0 /src | |
parent | 79e0a48c42b4dc7d49c3e04d42aefef4f0947430 (diff) | |
download | openttd-a4c12809451b878fec98141bf7f7df0ba9acdcc8.tar.xz |
(svn r11815) -Codechange (r11802): some compilers were giving a false warning about uninitialized variable
Diffstat (limited to 'src')
-rw-r--r-- | src/signal.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
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), |