forked from rosebudai/OpenRCT2-Web
Don't return pointer to local variable
This commit is contained in:
1 parent
fe9dd6b7a8
commit
1935f79507
1 file changed
+5
-1
@@ -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