Codechange: Replace SmallVector::Length() with std::vector::size()
This commit is contained in:
@@ -139,7 +139,7 @@ SpriteID GetCustomSignalSprite(const RailtypeInfo *rti, TileIndex tile, SignalTy
|
||||
uint8 GetReverseRailTypeTranslation(RailType railtype, const GRFFile *grffile)
|
||||
{
|
||||
/* No rail type table present, return rail type as-is */
|
||||
if (grffile == NULL || grffile->railtype_list.Length() == 0) return railtype;
|
||||
if (grffile == NULL || grffile->railtype_list.size() == 0) return railtype;
|
||||
|
||||
/* Look for a matching rail type label in the table */
|
||||
RailTypeLabel label = GetRailTypeInfo(railtype)->label;
|
||||
|
Reference in New Issue
Block a user