diff options
Diffstat (limited to 'editor/export/editor_export_platform.cpp')
-rw-r--r-- | editor/export/editor_export_platform.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/editor/export/editor_export_platform.cpp b/editor/export/editor_export_platform.cpp index 00fbd85166..d04eeafd07 100644 --- a/editor/export/editor_export_platform.cpp +++ b/editor/export/editor_export_platform.cpp @@ -329,9 +329,10 @@ Ref<EditorExportPreset> EditorExportPlatform::create_preset() { } for (const ExportOption &E : options) { - preset->properties.push_back(E.option); - preset->values[E.option.name] = E.default_value; - preset->update_visibility[E.option.name] = E.update_visibility; + StringName option_name = E.option.name; + preset->properties[option_name] = E.option; + preset->values[option_name] = E.default_value; + preset->update_visibility[option_name] = E.update_visibility; } return preset; |