From 6a07f80b766a6894ef6699acbafc719c9a7d7bd8 Mon Sep 17 00:00:00 2001 From: gdk Date: Thu, 23 Jun 2022 04:08:01 -0300 Subject: [PATCH] Make RBTree node fields internal again Prevents someone from accidentaly messing with them and leaving the tree in a invalid state --- Ryujinx.Common/Collections/IntrusiveRedBlackTreeNode.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Ryujinx.Common/Collections/IntrusiveRedBlackTreeNode.cs b/Ryujinx.Common/Collections/IntrusiveRedBlackTreeNode.cs index c6c01a0644..7143240dad 100644 --- a/Ryujinx.Common/Collections/IntrusiveRedBlackTreeNode.cs +++ b/Ryujinx.Common/Collections/IntrusiveRedBlackTreeNode.cs @@ -5,10 +5,10 @@ namespace Ryujinx.Common.Collections /// public class IntrusiveRedBlackTreeNode where T : IntrusiveRedBlackTreeNode { - public bool Color = true; - public T Left; - public T Right; - public T Parent; + internal bool Color = true; + internal T Left; + internal T Right; + internal T Parent; public T Predecessor => IntrusiveRedBlackTreeImpl.PredecessorOf((T)this); public T Successor => IntrusiveRedBlackTreeImpl.SuccessorOf((T)this);