From 7864304d9eda1312cdc0108acc46205d22fa9b11 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 15 May 2025 09:12:10 +0200 Subject: [PATCH] mTypeOptionsIdx fix during comptime with TypeDeclaration.ResolvedType --- IDEHelper/Compiler/BfModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index 052888ce..3c6916fe 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -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)