cosmetics

This commit is contained in:
UbitUmarov
2024-11-18 03:00:26 +00:00
parent 2d3140fc9a
commit 95ef45ba7c
2 changed files with 9 additions and 5 deletions

View File

@@ -2835,7 +2835,8 @@ namespace OpenSim.Region.ScriptEngine.Yengine
// Output compare and branch instructions in a tree-like fashion so we do O(log2 n) comparisons.
defaultLabel ??= ilGen.DefineLabel("default");
OutputStrCase(testRVal, caseTreeTop, defaultLabel);
if(caseTreeTop is not null)
OutputStrCase(testRVal, caseTreeTop, defaultLabel);
// Output code for the cases themselves, in the order given by the programmer,
// so they fall through as programmer wants. This includes the default case, if any.