From 3374544ced805919c1811e9d95e3ebad46ffd225 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Sun, 10 Sep 2023 10:28:25 +0200 Subject: [PATCH] Fix base type compare in template check --- oscar64/Declaration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar64/Declaration.cpp b/oscar64/Declaration.cpp index d5ee14d..f20327a 100644 --- a/oscar64/Declaration.cpp +++ b/oscar64/Declaration.cpp @@ -1453,7 +1453,7 @@ bool Declaration::IsSameTemplate(const Declaration* dec) const { if (this == dec) return true; - if (this->mType != mType) + if (this->mType != dec->mType) return false; if (mType == DT_CONST_FUNCTION)