diff --git a/MiraAPI/Patches/Voting/MeetingHudPatches.cs b/MiraAPI/Patches/Voting/MeetingHudPatches.cs index fc7f533..efe167d 100644 --- a/MiraAPI/Patches/Voting/MeetingHudPatches.cs +++ b/MiraAPI/Patches/Voting/MeetingHudPatches.cs @@ -58,7 +58,7 @@ internal static class MeetingHudPatches return false; JudgeRole? judgeRole = PlayerControl.LocalPlayer.Data.Role.TryCast(); bool flag = judgeRole && PlayerControl.LocalPlayer.PlayerId != __instance.PlayerId; - __instance.JudgeOverruleButton.gameObject.SetActive(flag); + __instance.JudgeOverruleButton?.gameObject.SetActive(flag); if (__instance.VoteComplete || !__instance.Parent.Select((byte) __instance.PlayerId)) return false; __instance.Buttons.SetActive(true);