- 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:
parent
44431ecade
commit
f9ee12aab2
3 changed files with 4 additions and 3 deletions
|
@ -46,6 +46,9 @@ namespace MudDesigner.Editors
|
||||||
|
|
||||||
private void lstRealms_SelectedIndexChanged(object sender, EventArgs e)
|
private void lstRealms_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
if (lstRealms.SelectedIndex == -1)
|
||||||
|
return;
|
||||||
|
|
||||||
foreach (Realm realm in realms)
|
foreach (Realm realm in realms)
|
||||||
{
|
{
|
||||||
if (realm.Name == lstRealms.SelectedItem.ToString())
|
if (realm.Name == lstRealms.SelectedItem.ToString())
|
||||||
|
|
|
@ -21,8 +21,6 @@ namespace MudDesigner.Editors
|
||||||
public partial class RealmExplorer : Form
|
public partial class RealmExplorer : Form
|
||||||
{
|
{
|
||||||
List<Realm> realms;
|
List<Realm> realms;
|
||||||
List<Zone> zones;
|
|
||||||
List<Room> rooms;
|
|
||||||
|
|
||||||
public RealmExplorer()
|
public RealmExplorer()
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,7 +42,7 @@ namespace MudDesigner.MudEngine.GameObjects.Environment
|
||||||
|
|
||||||
public Zone()
|
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)
|
public Zone(Realm realm)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue