Fix spelling of TRPRF_SPEED_RESTRICTION_SET

This commit is contained in:
Jonathan G Rennison
2021-11-13 02:00:37 +00:00
parent dca7e7bc58
commit dad007e16a
4 changed files with 5 additions and 5 deletions

View File

@@ -5349,7 +5349,7 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse)
v->reverse_distance = v->gcache.cached_total_length + (IsDiagonalTrack(TrackdirToTrack(dir)) ? 16 : 8);
SetWindowDirty(WC_VEHICLE_VIEW, v->index);
}
if (out.flags & TRPRF_SPEED_RETRICTION_SET) {
if (out.flags & TRPRF_SPEED_RESTRICTION_SET) {
SetBit(v->flags, VRF_PENDING_SPEED_RESTRICTION);
auto range = pending_speed_restriction_change_map.equal_range(v->index);
for (auto it = range.first; it != range.second; ++it) {