mirror of
https://github.com/OpenSim-NGC/OpenSim-Sasquatch.git
synced 2024-11-21 14:29:10 -07:00
mantis 9166: restore heapUsedFieldInfo also on method exit via state statement
This commit is contained in:
parent
54114a23f5
commit
c10747e1ea
1 changed files with 7 additions and 0 deletions
|
@ -2516,6 +2516,13 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
|||
}
|
||||
else
|
||||
{
|
||||
if (curDeclFunc.fullName != "$globalvarinit()")
|
||||
{
|
||||
PushXMRInst();
|
||||
ilGen.Emit(curDeclFunc, OpCodes.Ldloc, curHeapSize);
|
||||
ilGen.Emit(curDeclFunc, OpCodes.Stfld, heapUsedFieldInfo);
|
||||
}
|
||||
|
||||
ilGen.Emit(stateStmt, OpCodes.Ldc_I4, index); // new state's index
|
||||
ilGen.Emit(stateStmt, OpCodes.Newobj, scriptChangeStateExceptionConstructorInfo);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue