Merge pull request #17249 from janisozaur/fix-scenery-name-reporting

Fix possible crash when reporting scenery name in S4 import
This commit is contained in:
Michał Janiszewski authored and GitHub committed 2022-05-20 14:04:13 -07:00
commit 1516eba02d
1 file changed
+2 -1
+2 -1
View File
@@ -718,7 +718,8 @@ namespace RCT1
if (_sceneryGroupEntries.GetCount() >= MAX_SCENERY_GROUP_OBJECTS)
{
Console::WriteLine("Warning: More than %d (max scenery groups) in RCT1 park.", MAX_SCENERY_GROUP_OBJECTS);
Console::WriteLine(" [%s] scenery group not added.", entryName);
std::string entryNameString = std::string(entryName);
Console::WriteLine(" [%s] scenery group not added.", entryNameString.c_str());
}
else
{