summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-01-10 22:46:04 +0000
committersmatz <smatz@openttd.org>2008-01-10 22:46:04 +0000
commite5d33482b49afdfa91fb0e61b210479346e47484 (patch)
treef381f55b6134346f738b49c3f1f0c7a0792ef5fb /src
parenta1266da7825c0f979139db22c3c028feb9f49e40 (diff)
downloadopenttd-e5d33482b49afdfa91fb0e61b210479346e47484.tar.xz
(svn r11810) -Fix (r11802): reset sets when leaving prematurely
Diffstat (limited to 'src')
-rw-r--r--src/signal.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/signal.cpp b/src/signal.cpp
index 79997461c..b3852037d 100644
--- a/src/signal.cpp
+++ b/src/signal.cpp
@@ -530,7 +530,10 @@ static bool UpdateSignalsInBuffer()
}
/* do not do anything when some buffer was full */
- if (flags & SF_FULL) break;
+ if (flags & SF_FULL) {
+ ResetSets(); // free all sets
+ break;
+ }
UpdateSignalsAroundSegment(flags);
}