mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-05-09 12:22:13 -05:00
Latte: Fix rare corruption in buffer cache
This commit is contained in:
parent
12970c2da6
commit
e8bee64b5e
|
|
@ -776,9 +776,8 @@ private:
|
|||
{
|
||||
TreeNode* treeNodeParent = (treeNode->parentNodeIndex != INVALID_NODE_INDEX) ? &m_treeNodes[treeNode->parentNodeIndex] : nullptr;
|
||||
ReleaseTreeNode(treeNode, true);
|
||||
if (treeNodeParent && treeNodeParent->usedCount > 0)
|
||||
PropagateMinValue(treeNodeParent);
|
||||
// note - this will never shrink the tree, since there is at least one left or right neighbor
|
||||
if (treeNodeParent)
|
||||
CollapseNode(treeNodeParent, depth - 1);
|
||||
return;
|
||||
}
|
||||
// todo - redistribute values
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user