mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Null check fix with fieldInstance type
This commit is contained in:
parent
0dcc7c4df3
commit
8a0b17824d
1 changed files with 2 additions and 1 deletions
|
@ -6095,7 +6095,8 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
|
||||||
{
|
{
|
||||||
auto fieldInstance = (BfFieldInstance*)&checkTypeInstance->mFieldInstances[fieldIdx];
|
auto fieldInstance = (BfFieldInstance*)&checkTypeInstance->mFieldInstances[fieldIdx];
|
||||||
|
|
||||||
if ((fieldInstance->mResolvedType->IsVar()) || (fieldInstance->mResolvedType->IsLet()))
|
if ((fieldInstance->mResolvedType != NULL) &&
|
||||||
|
((fieldInstance->mResolvedType->IsVar()) || (fieldInstance->mResolvedType->IsLet())))
|
||||||
{
|
{
|
||||||
//TODO: allow splattables with var/let field types
|
//TODO: allow splattables with var/let field types
|
||||||
hadNonSplattable = true;
|
hadNonSplattable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue