Replace C# if statement with switch statement to match GDScript (#5018)

This commit is contained in:
hpnrep6
2021-06-20 00:12:47 +02:00
committed by Hugo Locurcio
parent ac54967162
commit 783f295af2
@@ -257,14 +257,18 @@ tree structures.
public override void Notification(int what)
{
if (what == NotificationPredelete)
switch (what)
{
foreach (object child in _children)
{
TreeNode node = child as TreeNode;
if (node != null)
node.Free();
}
case NotificationPredelete:
foreach (object child in _children)
{
TreeNode node = child as TreeNode;
if (node != null)
node.Free();
}
break;
default:
break;
}
}
}