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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user