Mud Engine:

- UIRealmControl now checks to make sure the Zone directory exists prior to accessing it. Fixes the exception being thrown due to it.
This commit is contained in:
Scionwest_cp 2010-01-09 17:14:36 -08:00
parent 8d5a2b184c
commit 8b55b95dc1

View file

@ -63,6 +63,9 @@ namespace MudDesigner.MudEngine.UITypeEditors
lstRealmMembers.Items.Add(zone);
}
if (!Directory.Exists(zonePath))
Directory.CreateDirectory(zonePath);
string[] zones = Directory.GetFiles(zonePath, "*.zone", SearchOption.AllDirectories);
foreach (string zone in zones)