From d7f0227268a48738d20d7a88edcfe5f42471364a Mon Sep 17 00:00:00 2001 From: Reetus <6239195+Reetus@users.noreply.github.com> Date: Thu, 20 Feb 2020 02:12:10 +0800 Subject: [PATCH] Fix nullref exception in Notoriety, MobileNotoriety was being called with null master causing server crash,,, (#91) --- Projects/Scripts/Misc/Notoriety.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projects/Scripts/Misc/Notoriety.cs b/Projects/Scripts/Misc/Notoriety.cs index ea42bc887..5c9d661da 100644 --- a/Projects/Scripts/Misc/Notoriety.cs +++ b/Projects/Scripts/Misc/Notoriety.cs @@ -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; }