Reset codegen target after parsing nested function

Parsing a function expression inside another function failed to reset
the code generator target to the containing function, so all following
bytecode would still be appended to the nested function, leaving the
container broken.
directional-lights
Nicolas Hake 2016-10-12 14:56:54 +02:00
parent 0996c6e31e
commit 66d5ef8b08
1 changed files with 1 additions and 0 deletions

View File

@ -2217,6 +2217,7 @@ C4Value C4AulParse::Parse_ConstExpression(C4PropListStatic * parent, C4String *
Shift();
Parse_FuncBody();
Fn = prev_Fn;
codegen.Fn = Fn;
}
else
{