From d52ef38a896bc6c971e6a49b3044f887b7480c0c Mon Sep 17 00:00:00 2001 From: arookas Date: Mon, 28 Dec 2015 02:48:37 -0500 Subject: [PATCH] Fixed: updated variable count in header. --- ssc/context.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ssc/context.cs b/ssc/context.cs index a71b8de..ddd1231 100644 --- a/ssc/context.cs +++ b/ssc/context.cs @@ -11,7 +11,6 @@ namespace arookas bool mOpen; aBinaryWriter mWriter; uint mTextOffset, mDataOffset, mSymbolOffset; - int mVarCount; public sunWriter Text { get; private set; } public sunDataTable DataTable { get; private set; } @@ -106,7 +105,6 @@ namespace arookas ImportResolver.EnterFile(file); var parser = new sunParser(); var tree = parser.Parse(file); - mVarCount += tree.MaxLocalCount; tree.Compile(this); ImportResolver.ExitFile(file); } @@ -271,7 +269,7 @@ namespace arookas mWriter.WriteS32(DataTable.Count); mWriter.Write32(mSymbolOffset); mWriter.WriteS32(SymbolTable.Count); - mWriter.WriteS32(mVarCount); + mWriter.WriteS32(SymbolTable.VariableCount); } } }