mirror of https://github.com/OpenRCT2/OpenRCT2.git
Don't return pointer to local variable
This commit is contained in:
parent
fe9dd6b7a8
commit
1935f79507
|
@ -176,7 +176,11 @@ public:
|
||||||
item->Path = std::string(newPath);
|
item->Path = std::string(newPath);
|
||||||
SortItems();
|
SortItems();
|
||||||
|
|
||||||
result = newPath;
|
item = GetTrackItem(newPath);
|
||||||
|
if (item != nullptr)
|
||||||
|
{
|
||||||
|
result = item->Path.c_str();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue