Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)

This commit is contained in:
Kamron Batman 2019-03-11 14:29:59 -07:00 committed by GitHub
parent e748af4430
commit 513e54f70e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1094 changed files with 15913 additions and 21892 deletions

View file

@ -66,7 +66,7 @@ namespace Server.Gumps
else
m_Mobile.SendLocalizedMessage(1013028); // That person has a different faction affiliation.
}
else if (targetState != null && targetState.IsLeaving)
else if (targetState?.IsLeaving == true)
{
// OSI does this quite strangely, so we'll just do it this way
m_Mobile.SendMessage("That person is quitting their faction and so you may not recruit them.");
@ -94,4 +94,4 @@ namespace Server.Gumps
m_Mobile.SendGump(new GuildGump(m_Mobile, m_Guild));
}
}
}
}