Fix nullref exception in Notoriety, MobileNotoriety was being called with null master causing server crash,,, (#91)
This commit is contained in:
parent
9fd8150131
commit
d7f0227268
1 changed files with 2 additions and 2 deletions
|
|
@ -403,8 +403,8 @@ namespace Server.Misc
|
|||
{
|
||||
Mobile master = bc.GetMaster();
|
||||
|
||||
if (master != null && CheckAggressor(master.Aggressors, target) ||
|
||||
MobileNotoriety(master, target) == Notoriety.CanBeAttacked || bcTarg != null)
|
||||
if (master != null && (CheckAggressor(master.Aggressors, target) ||
|
||||
MobileNotoriety(master, target) == Notoriety.CanBeAttacked || bcTarg != null))
|
||||
return Notoriety.CanBeAttacked;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue