From ed8eb072c56cd99b4b26988e3582c703967e8a86 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Sat, 12 Apr 2025 02:11:06 +0300 Subject: [PATCH] Fix error in LocalizationSettingsEditor after adding new locales --- .../CustomEditors/Dedicated/LocalizationSettingsEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/CustomEditors/Dedicated/LocalizationSettingsEditor.cs b/Source/Editor/CustomEditors/Dedicated/LocalizationSettingsEditor.cs index fe5729acc..bfe3d5efe 100644 --- a/Source/Editor/CustomEditors/Dedicated/LocalizationSettingsEditor.cs +++ b/Source/Editor/CustomEditors/Dedicated/LocalizationSettingsEditor.cs @@ -137,7 +137,7 @@ namespace FlaxEditor.CustomEditors.Dedicated table.Entries = entries; if (!table.Save(path)) { - Object.Destroy(table); + Object.DestroyNow(table); newTables.Add(FlaxEngine.Content.LoadAsync(path)); } } @@ -153,7 +153,7 @@ namespace FlaxEditor.CustomEditors.Dedicated table.Locale = culture.Name; if (!table.Save(path)) { - Object.Destroy(table); + Object.DestroyNow(table); newTables.Add(FlaxEngine.Content.LoadAsync(path)); } }