From bc3ace2205d5892c3f7b03707a3e2b78224b7573 Mon Sep 17 00:00:00 2001 From: triton Date: Mon, 7 Sep 2015 02:07:46 +0100 Subject: [PATCH] Rework __OriginalVTables to be unique per instance. We need to take into account that the original vtables might differ per object instance. --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 881decf4..c8dcf96e 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1312,7 +1312,7 @@ namespace CppSharp.Generators.CSharp const string dictionary = "System.Collections.Generic.Dictionary"; - WriteLine("private static void*[] __OriginalVTables;"); + WriteLine("private void*[] __OriginalVTables;"); WriteLine("private static void*[] __ManagedVTables;"); WriteLine("private static void*[] _Thunks;"); WriteLine("private static {0} _References;", dictionary);