- Removed forced exception for parameterless Zone instancing. Was throwing an exception during deserialization of the xml documention.

- Fixed the Select a Realm form from crashing when the listbox was clicked and no Realm was selected.
This commit is contained in:
Scionwest_cp 2009-12-08 15:54:47 -08:00
parent 44431ecade
commit f9ee12aab2
3 changed files with 4 additions and 3 deletions

View file

@ -46,6 +46,9 @@ namespace MudDesigner.Editors
private void lstRealms_SelectedIndexChanged(object sender, EventArgs e)
{
if (lstRealms.SelectedIndex == -1)
return;
foreach (Realm realm in realms)
{
if (realm.Name == lstRealms.SelectedItem.ToString())

View file

@ -21,8 +21,6 @@ namespace MudDesigner.Editors
public partial class RealmExplorer : Form
{
List<Realm> realms;
List<Zone> zones;
List<Room> rooms;
public RealmExplorer()
{

View file

@ -42,7 +42,7 @@ namespace MudDesigner.MudEngine.GameObjects.Environment
public Zone()
{
throw new NotSupportedException("Parameterless constructors of Type " + this.GetType().FullName + " is not supported.");
//throw new NotSupportedException("Parameterless constructors of Type " + this.GetType().FullName + " is not supported.");
}
public Zone(Realm realm)