1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

Do not use td6 as a variable name for TrackDesign

This commit is contained in:
Gymnasiast
2024-07-02 19:29:19 +02:00
parent 9a616cd055
commit bc13b46f96
6 changed files with 102 additions and 102 deletions

View File

@@ -73,14 +73,14 @@ public:
public:
std::optional<TrackRepositoryItem> Create(int32_t, const std::string& path) const override
{
auto td6 = TrackDesignImport(path.c_str());
if (td6 != nullptr)
auto td = TrackDesignImport(path.c_str());
if (td != nullptr)
{
TrackRepositoryItem item;
item.Name = GetNameFromTrackPath(path);
item.Path = path;
item.RideType = td6->type;
item.ObjectEntry = std::string(td6->vehicleObject.Entry.name, 8);
item.RideType = td->type;
item.ObjectEntry = std::string(td->vehicleObject.Entry.name, 8);
item.Flags = 0;
if (IsTrackReadOnly(path))
{