Fix #9745: CJK characters are broken in ride names

This commit is contained in:
Ted John committed 2019-08-07 12:34:05 +01:00
1 parent 18e35c1c98
commit 16a2046032
1 file changed
+1 -2
+1 -2
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;