Handle area encounter case when none

This commit is contained in:
Kurt
2022-02-19 15:46:19 -08:00
parent df1391e878
commit 62a4fbc629

View File

@@ -14,6 +14,13 @@ public partial class EncounterTableEditor8a : UserControl
public void LoadTable(EncounterTable8a[] table, string path)
{
Tables = table;
if (table.Length == 0)
{
Visible = false;
return;
}
Visible = true;
L_EncTableName.Text = path;
var items = table.Select(z => new ComboItem(z.TableName.Replace("\"", ""), z)).ToArray();