Fix error in LocalizationSettingsEditor after adding new locales
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user