⚡ Sangsakala Proxy 🏠 Home
Skip to content

Commit 2b69560

Browse files
committed
Fix missing spawnlists tab
1 parent 1ef1f96 commit 2b69560

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Source.GUI.Controls/Panel.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,10 +2440,12 @@ public void SetZPos(int z) {
24402440
// Swap with lower
24412441
Parent.Children[i] = prevChild;
24422442
Parent.Children[i - 1] = this;
2443+
i--;
24432444
}
24442445
else if (i < (childCount - 1) && nextChild != null && nextChild.ZPos < ZPos) {
24452446
Parent.Children[i] = nextChild;
24462447
Parent.Children[i + 1] = this;
2448+
i++;
24472449
}
24482450
else
24492451
break;

0 commit comments

Comments
 (0)