aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/CodeTools
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-01-22 01:23:10 +0000
committerJustin Clark-Casey (justincc)2013-01-22 01:23:10 +0000
commitc6ba27d096a3008bc0128aebddf4d2e9708d2498 (patch)
treedb37f203009f1d9a017c9d90249782cc53c1a977 /OpenSim/Region/ScriptEngine/Shared/CodeTools
parentfactor out common code in existing co-op termination regression tests (diff)
downloadopensim-SC_OLD-c6ba27d096a3008bc0128aebddf4d2e9708d2498.zip
opensim-SC_OLD-c6ba27d096a3008bc0128aebddf4d2e9708d2498.tar.gz
opensim-SC_OLD-c6ba27d096a3008bc0128aebddf4d2e9708d2498.tar.bz2
opensim-SC_OLD-c6ba27d096a3008bc0128aebddf4d2e9708d2498.tar.xz
Fix bug in generating termination checks in compound statement for loop.
Add regression test for this case.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
index 002f9b8..985e598 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
@@ -445,7 +445,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
445 if (previousSymbol is GlobalFunctionDefinition 445 if (previousSymbol is GlobalFunctionDefinition
446 || previousSymbol is WhileStatement 446 || previousSymbol is WhileStatement
447 || previousSymbol is DoWhileStatement 447 || previousSymbol is DoWhileStatement
448 || previousSymbol is ForLoopStatement 448 || previousSymbol is ForLoop
449 || previousSymbol is StateEvent) 449 || previousSymbol is StateEvent)
450 retstr += GenerateIndentedLine(m_coopTerminationCheck); 450 retstr += GenerateIndentedLine(m_coopTerminationCheck);
451 } 451 }