Merge pull request #2669 from laytan/check-disabled-when-generating-parapoly

Fix #2666 by checking for disabled when generating parapoly procs
This commit is contained in:
gingerBill
2023-08-01 14:45:36 +01:00
committed by GitHub
4 changed files with 32 additions and 0 deletions

View File

@@ -349,6 +349,10 @@ gb_internal bool find_or_generate_polymorphic_procedure(CheckerContext *old_c, E
return false;
}
if (base_entity->flags & EntityFlag_Disabled) {
return false;
}
String name = base_entity->token.string;
Type *src = base_type(base_entity->type);