mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-17 19:49:10 +00:00
Codechange: Replaced SmallVector::[Begin|End]() with std alternatives
This commit is contained in:
@@ -837,8 +837,7 @@ static void RestoreTrainBackup(TrainList &list)
|
||||
|
||||
Train *prev = NULL;
|
||||
/* Iterate over the list and rebuild it. */
|
||||
for (Train **iter = list.Begin(); iter != list.End(); iter++) {
|
||||
Train *t = *iter;
|
||||
for (Train *t : list) {
|
||||
if (prev != NULL) {
|
||||
prev->SetNext(t);
|
||||
} else if (t->Previous() != NULL) {
|
||||
|
Reference in New Issue
Block a user