From 502d77e925d3cd9df0339004b5516affdab1e4f0 Mon Sep 17 00:00:00 2001 From: Deadlocklogic Date: Tue, 5 Dec 2023 08:49:49 +0200 Subject: [PATCH] TypeMapDatabase: fix passing GeneratorKind to FindTypeMap calls --- src/Generator/Types/TypeMapDatabase.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Generator/Types/TypeMapDatabase.cs b/src/Generator/Types/TypeMapDatabase.cs index 466a25f0..aee8b6bb 100644 --- a/src/Generator/Types/TypeMapDatabase.cs +++ b/src/Generator/Types/TypeMapDatabase.cs @@ -64,13 +64,12 @@ namespace CppSharp.Types { 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;