mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-20 04:59:11 +00:00
Codechange: Replace SmallVector::Length() with std::vector::size()
This commit is contained in:
@@ -833,7 +833,7 @@ static void MakeTrainBackup(TrainList &list, Train *t)
|
||||
static void RestoreTrainBackup(TrainList &list)
|
||||
{
|
||||
/* No train, nothing to do. */
|
||||
if (list.Length() == 0) return;
|
||||
if (list.size() == 0) return;
|
||||
|
||||
Train *prev = NULL;
|
||||
/* Iterate over the list and rebuild it. */
|
||||
|
Reference in New Issue
Block a user