From 8b55b95dc105eea9282de95a1291f007f32c44b1 Mon Sep 17 00:00:00 2001 From: Scionwest_cp Date: Sat, 9 Jan 2010 17:14:36 -0800 Subject: [PATCH] Mud Engine: - UIRealmControl now checks to make sure the Zone directory exists prior to accessing it. Fixes the exception being thrown due to it. --- Mud Designer/MudEngine/UITypeEditors/UIRealmControl.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mud Designer/MudEngine/UITypeEditors/UIRealmControl.cs b/Mud Designer/MudEngine/UITypeEditors/UIRealmControl.cs index f12cae1..097fb40 100644 --- a/Mud Designer/MudEngine/UITypeEditors/UIRealmControl.cs +++ b/Mud Designer/MudEngine/UITypeEditors/UIRealmControl.cs @@ -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)