diff options
author | glx22 <glx@openttd.org> | 2021-06-13 05:15:36 +0200 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-07-09 21:36:09 +0200 |
commit | 49b66ea504fafe9b942b35a97c369c4afa054f41 (patch) | |
tree | 55441ecb7e10afa37d003239abf7ec5aad97a71f /src/train_cmd.cpp | |
parent | a543a4b7bb0d869800591ec1504b3934b68ecd8f (diff) | |
download | openttd-49b66ea504fafe9b942b35a97c369c4afa054f41.tar.xz |
Codechange: Remove FOR_EACH_SET_TRACK
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 47895122b..17e298c33 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3485,8 +3485,7 @@ static void DeleteLastWagon(Train *v) /* It is important that these two are the first in the loop, as reservation cannot deal with every trackbit combination */ assert(TRACK_BEGIN == TRACK_X && TRACK_Y == TRACK_BEGIN + 1); - Track t; - FOR_EACH_SET_TRACK(t, remaining_trackbits) TryReserveRailTrack(tile, t); + for (Track t : SetTrackBitIterator(remaining_trackbits)) TryReserveRailTrack(tile, t); } /* check if the wagon was on a road/rail-crossing */ |