Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)
This commit is contained in:
parent
e748af4430
commit
513e54f70e
1094 changed files with 15913 additions and 21892 deletions
|
|
@ -11,13 +11,13 @@ namespace Server.Gumps
|
|||
|
||||
protected override void Design()
|
||||
{
|
||||
AddHtmlLocalized(20, 10, 400, 35, 1011097, false, false); // Declare your fealty
|
||||
AddHtmlLocalized(20, 10, 400, 35, 1011097); // Declare your fealty
|
||||
|
||||
AddButton(20, 400, 4005, 4007, 1, GumpButtonType.Reply, 0);
|
||||
AddHtmlLocalized(55, 400, 250, 35, 1011098, false, false); // I have selected my new lord.
|
||||
AddButton(20, 400, 4005, 4007, 1);
|
||||
AddHtmlLocalized(55, 400, 250, 35, 1011098); // I have selected my new lord.
|
||||
|
||||
AddButton(300, 400, 4005, 4007, 0, GumpButtonType.Reply, 0);
|
||||
AddHtmlLocalized(335, 400, 100, 35, 1011012, false, false); // CANCEL
|
||||
AddButton(300, 400, 4005, 4007, 0);
|
||||
AddHtmlLocalized(335, 400, 100, 35, 1011012); // CANCEL
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState state, RelayInfo info)
|
||||
|
|
@ -37,7 +37,8 @@ namespace Server.Gumps
|
|||
{
|
||||
Mobile m = m_List[index];
|
||||
|
||||
if (m != null && !m.Deleted) state.Mobile.GuildFealty = m;
|
||||
if (m?.Deleted == false)
|
||||
state.Mobile.GuildFealty = m;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -46,4 +47,4 @@ namespace Server.Gumps
|
|||
m_Mobile.SendGump(new GuildGump(m_Mobile, m_Guild));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue