1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 01:49:10 +00:00

(svn r11815) -Codechange (r11802): some compilers were giving a false warning about uninitialized variable

This commit is contained in:
smatz
2008-01-11 22:29:47 +00:00
parent 79e0a48c42
commit a4c1280945

View File

@@ -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),