Fix error in LocalizationSettingsEditor after adding new locales

This commit is contained in:
2025-04-12 02:11:06 +03:00
parent a9a9057304
commit ed8eb072c5

View File

@@ -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<LocalizedStringTable>(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<LocalizedStringTable>(path));
}
}