1
0
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:
Ted John
2019-08-07 12:34:05 +01:00
parent 18e35c1c98
commit 16a2046032

View File

@@ -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;