diff --git a/IDEHelper/Compiler/BfExprEvaluator.cpp b/IDEHelper/Compiler/BfExprEvaluator.cpp index 4797d4ea..70fd9731 100644 --- a/IDEHelper/Compiler/BfExprEvaluator.cpp +++ b/IDEHelper/Compiler/BfExprEvaluator.cpp @@ -2862,6 +2862,8 @@ void BfMethodMatcher::TryDevirtualizeCall(BfTypedValue target, BfTypedValue* ori auto underlyingType = checkType->GetUnderlyingType(); if ((underlyingType != NULL) && (underlyingType->IsWrappableType())) checkTypeInst = mModule->GetWrappedStructType(underlyingType); + if (checkTypeInst == checkType) + break; } }