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 | 81b3635c805ad4c6195925f149879bd00d5b3f9a (patch) | |
tree | ae9caf598b12cc708365a91d46532bf730fd76b0 /src/signal.cpp | |
parent | c4ad3c648b8570e40d84c1b443d32897f7a4aa9c (diff) | |
download | openttd-81b3635c805ad4c6195925f149879bd00d5b3f9a.tar.xz |
(svn r11815) -Codechange (r11802): some compilers were giving a false warning about uninitialized variable
Diffstat (limited to 'src/signal.cpp')
-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), |