summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/signal.cpp10
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),