From 22238e04ef222637d6adb1deed9ab32a305e5870 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 23 Jan 2025 08:06:57 -0800 Subject: [PATCH] GetRawMethodInstanceAtIdx handling of mid-compile-deleted types --- IDEHelper/Compiler/BfModule.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index 93e42428..8da9fc0b 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -11081,6 +11081,12 @@ bool BfModule::GetBasePropertyDef(BfPropertyDef*& propDef, BfTypeInstance*& type BfMethodInstance* BfModule::GetRawMethodInstanceAtIdx(BfTypeInstance* typeInstance, int methodIdx, const char* assertName) { + if (typeInstance->IsDeleting()) + { + InternalError("GetRawMethodInstanceAtIdx for deleted type", typeInstance->mTypeDef->GetRefNode()); + return NULL; + } + if (!typeInstance->mResolvingVarField) { if (!typeInstance->DefineStateAllowsStaticMethods())