1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Fix possible crash when reporting scenery name in S4 import

Similar to https://github.com/OpenRCT2/OpenRCT2/pull/17197
This commit is contained in:
Michał Janiszewski
2022-05-20 22:39:30 +02:00
parent acada46232
commit 5f7a852e57

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
{