Fix base type compare in template check

This commit is contained in:
drmortalwombat 2023-09-10 10:28:25 +02:00
parent bd37877c8c
commit 3374544ced

View File

@ -1453,7 +1453,7 @@ bool Declaration::IsSameTemplate(const Declaration* dec) const
{ {
if (this == dec) if (this == dec)
return true; return true;
if (this->mType != mType) if (this->mType != dec->mType)
return false; return false;
if (mType == DT_CONST_FUNCTION) if (mType == DT_CONST_FUNCTION)