1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

mTypeOptionsIdx fix during comptime with TypeDeclaration.ResolvedType

This commit is contained in:
Brian Fiete 2025-05-15 09:12:10 +02:00
parent 8102de259f
commit 7864304d9e

View file

@ -6512,7 +6512,7 @@ BfIRValue BfModule::CreateTypeData(BfType* type, BfCreateTypeDataContext& ctx, b
}
int stackCount = 0;
if ((typeInstance != NULL) && (typeInstance->mTypeOptionsIdx != -1))
if ((typeInstance != NULL) && (typeInstance->mTypeOptionsIdx >= 0))
{
auto typeOptions = mSystem->GetTypeOptions(typeInstance->mTypeOptionsIdx);
if (typeOptions->mAllocStackTraceDepth != -1)