Godot Engine – Multi-platform 2D and 3D game engine
Fix `StringName` temporary loss in macOS export plugin, potentially leading to crashes.
Lukas Tenbrink3d864f1fa8f7
diff --git a/platform/macos/export/export_plugin.cpp b/platform/macos/export/export_plugin.cppindex 24006662698..cc207d5c0af 100644--- a/platform/macos/export/export_plugin.cpp+++ b/platform/macos/export/export_plugin.cpp@@ -1841,7 +1841,7 @@ Error EditorExportPlatformMacOS::export_project(const Ref<EditorExportPreset> &pif (appnames.is_empty()) {domain->set_locale_override(lang);- const String &name = domain->translate(project_name, String());+ String name = domain->translate(project_name, String());if (name != project_name) {f->store_line("CFBundleDisplayName = \"" + name.xml_escape(true) + "\";");}