mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed type table comparison crash
This commit is contained in:
parent
a457ebcbc5
commit
e917fd8fdf
1 changed files with 5 additions and 0 deletions
|
@ -3577,6 +3577,11 @@ bool BfResolvedTypeSet::Equals(BfType* lhs, BfTypeReference* rhs, LookupContext*
|
|||
if ((ctx->mRootTypeRef != rhs) || (ctx->mRootTypeDef == NULL))
|
||||
{
|
||||
auto rhsResolvedType = ctx->ResolveTypeRef(rhs);
|
||||
if (rhsResolvedType == NULL)
|
||||
{
|
||||
ctx->mFailed = true;
|
||||
return false;
|
||||
}
|
||||
return Equals(lhs, rhsResolvedType, ctx);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue