diff --git a/src/Generator/Types/TypeMapDatabase.cs b/src/Generator/Types/TypeMapDatabase.cs index 466a25f02..aee8b6bb2 100644 --- a/src/Generator/Types/TypeMapDatabase.cs +++ b/src/Generator/Types/TypeMapDatabase.cs @@ -64,13 +64,12 @@ public bool FindTypeMap(Type type, GeneratorKind kind, out TypeMap typeMap) { var specialization = template.GetClassTemplateSpecialization(); if (specialization != null && - FindTypeMap(specialization, out typeMap)) + FindTypeMap(specialization, kind, out typeMap)) return true; if (template.Template.TemplatedDecl != null) { - if (FindTypeMap(template.Template.TemplatedDecl, - out typeMap)) + if (FindTypeMap(template.Template.TemplatedDecl, kind, out typeMap)) { typeMap.Type = type; return true;