mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed crash checking generic args for local method
This commit is contained in:
parent
34dcd47dd5
commit
3c45db1976
1 changed files with 1 additions and 1 deletions
|
@ -13576,7 +13576,7 @@ BfModuleMethodInstance BfExprEvaluator::GetSelectedMethod(BfAstNode* targetSrc,
|
|||
{
|
||||
// If the root method is generic and we need that param then use that...
|
||||
auto rootMethodInstance = rootMethodState->mMethodInstance;
|
||||
if (checkGenericIdx < rootMethodInstance->mMethodInfoEx->mMethodGenericArguments.size())
|
||||
if ((rootMethodInstance->mMethodInfoEx != NULL) && (checkGenericIdx < rootMethodInstance->mMethodInfoEx->mMethodGenericArguments.size()))
|
||||
{
|
||||
genericArg = rootMethodInstance->mMethodInfoEx->mMethodGenericArguments[checkGenericIdx];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue