From b32de20d65ce930484281c299291e4e5d8fe815a Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 15 May 2013 15:11:19 +0100 Subject: [PATCH] Check if the class has a base class instead of just a base. --- 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 bdcc4721..dfa974b9 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -816,7 +816,7 @@ namespace CppSharp.Generators.CSharp private bool GenerateClassConstructorBase(Class @class, Method method) { - var hasBase = @class.HasBase && !@class.Bases[0].Class.Ignore; + var hasBase = @class.HasBaseClass && !@class.Bases[0].Class.Ignore; if (hasBase && !@class.IsValueType) {