Fixes bad expressions, bad bool checks in loops, a few null pointer exceptions, and optimizes constructors.
This commit is contained in:
parent
8da55d6043
commit
f93c3b992e
62 changed files with 318 additions and 634 deletions
|
|
@ -44,7 +44,7 @@ namespace Server.Gumps
|
|||
AddHtmlLocalized(45, 110, 150, 20, 1061279, GetColor(SecureLevel.Friends), false, false); // Friends
|
||||
|
||||
Mobile houseOwner = house.Owner;
|
||||
if (Guild.NewGuildSystem && house != null && houseOwner?.Guild != null &&
|
||||
if (Guild.NewGuildSystem && houseOwner?.Guild != null &&
|
||||
((Guild)houseOwner.Guild).Leader == houseOwner
|
||||
) //Only the actual House owner AND guild master can set guild secures
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue