aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
index 795d38f..37d29f7 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
@@ -474,7 +474,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
474 /// <returns>String containing C# code for JumpLabel jl.</returns> 474 /// <returns>String containing C# code for JumpLabel jl.</returns>
475 private string GenerateJumpLabel(JumpLabel jl) 475 private string GenerateJumpLabel(JumpLabel jl)
476 { 476 {
477 return Generate(String.Format("{0}:\n", jl.LabelName), jl); 477 return Generate(String.Format("{0}:", CheckName(jl.LabelName)), jl) + " NoOp();\n";
478 } 478 }
479 479
480 /// <summary> 480 /// <summary>
@@ -484,7 +484,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
484 /// <returns>String containing C# code for JumpStatement js.</returns> 484 /// <returns>String containing C# code for JumpStatement js.</returns>
485 private string GenerateJumpStatement(JumpStatement js) 485 private string GenerateJumpStatement(JumpStatement js)
486 { 486 {
487 return Generate(String.Format("goto {0}", js.TargetName), js); 487 return Generate(String.Format("goto {0}", CheckName(js.TargetName)), js);
488 } 488 }
489 489
490 /// <summary> 490 /// <summary>