From 16a204603232e43bf9d7a4c036d42379db779c71 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 7 Aug 2019 12:34:05 +0100 Subject: [PATCH] Fix #9745: CJK characters are broken in ride names --- src/openrct2/rct2/S6Exporter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/openrct2/rct2/S6Exporter.cpp b/src/openrct2/rct2/S6Exporter.cpp index 5d7554e24c..2e68f05a2e 100644 --- a/src/openrct2/rct2/S6Exporter.cpp +++ b/src/openrct2/rct2/S6Exporter.cpp @@ -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;