Fix #2666 by checking for disabled when generating parapoly procs

This commit is contained in:
Laytan Laats
2023-07-19 20:27:34 +02:00
parent 1b3657122c
commit 74338733ba
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);