fix yield prolog so it compiles with mono 2.11 there has been a bugzilla

report files with mono project in regards to this change, this simply
lets us move forward with using mono 2.11 for now :
https://bugzilla.xamarin.com/show_bug.cgi?id=4052
0.7.3-post-fixes
nebadon 2012-03-23 02:22:57 -07:00 committed by Justin Clark-Casey (justincc)
parent de667ea00a
commit 8dea2c8e40
2 changed files with 6 additions and 6 deletions

View File

@ -226,7 +226,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
break; break;
} }
} }
int z = 0;
try try
{ {
if (gotMatch) if (gotMatch)
@ -235,8 +235,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
finally finally
{ {
// Manually finalize all the iterators. // Manually finalize all the iterators.
for (int i = 0; i < nIterators; ++i) for (z = 0; z < nIterators; ++z)
iterators[i].Dispose(); iterators[z].Dispose();
} }
} }
} }

View File

@ -576,7 +576,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
break; break;
} }
} }
int z = 0;
try try
{ {
if (gotMatch) if (gotMatch)
@ -585,8 +585,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
finally finally
{ {
// Manually finalize all the iterators. // Manually finalize all the iterators.
for (int i = 0; i < nIterators; ++i) for (z = 0; z < nIterators; ++z)
iterators[i].Dispose(); iterators[z].Dispose();
} }
} }