mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 03:53:07 +01:00
Fix #9745: CJK characters are broken in ride names
This commit is contained in:
@@ -501,8 +501,7 @@ void S6Exporter::ExportRide(rct2_ride* dst, const Ride* src)
|
||||
if (!src->custom_name.empty())
|
||||
{
|
||||
// Custom name, allocate user string for ride
|
||||
auto rideName = utf8_to_rct2(src->custom_name);
|
||||
auto stringId = AllocateUserString(rideName);
|
||||
auto stringId = AllocateUserString(src->custom_name);
|
||||
if (stringId != opt::nullopt)
|
||||
{
|
||||
dst->name = *stringId;
|
||||
|
||||
Reference in New Issue
Block a user