mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Don't return pointer to local variable
This commit is contained in:
@@ -176,7 +176,11 @@ public:
|
||||
item->Path = std::string(newPath);
|
||||
SortItems();
|
||||
|
||||
result = newPath;
|
||||
item = GetTrackItem(newPath);
|
||||
if (item != nullptr)
|
||||
{
|
||||
result = item->Path.c_str();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user