Skip to content

Commit

Permalink
Forgot a variable push
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenkai committed Mar 31, 2023
1 parent 10bf6ba commit 3bea002
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GTAdhocToolchain.Compiler/AdhocScriptCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,7 @@ private void CompileStaticVariableDefinition(AdhocCodeFrame frame, StaticVariabl
// Statics in < V10 are always set to a nil if not explicitly set to a value
if (frame.Version < 10)
{
InsertVariablePush(frame, ident, isVariableDeclaration: false);
frame.AddInstruction(new InsNilConst(), ident.Location.Start.Line);
InsertAssignPop(frame);
}
Expand Down

0 comments on commit 3bea002

Please sign in to comment.