mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-07 20:20:00 +02:00
Revert NullReferenceException change in IntervalTree.cs
* Not technically needed because newNode.Parent is the same value as parent
This commit is contained in:
@@ -316,16 +316,13 @@ namespace ARMeilleure.Translation
|
|||||||
{
|
{
|
||||||
_root = newNode;
|
_root = newNode;
|
||||||
}
|
}
|
||||||
else if (parent != null && start.CompareTo(parent.Start) < 0)
|
else if (start.CompareTo(parent.Start) < 0)
|
||||||
{
|
{
|
||||||
parent.Left = newNode;
|
parent.Left = newNode;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (parent != null)
|
parent.Right = newNode;
|
||||||
{
|
|
||||||
parent.Right = newNode;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PropagateIncrease(newNode);
|
PropagateIncrease(newNode);
|
||||||
|
|||||||
Reference in New Issue
Block a user