remove version check for array type fix, to prevent crashes/etc with bad types

This commit is contained in:
Ricardo Luís Vaz Silva 2024-12-10 15:18:56 -03:00 committed by Rachael Alexanderson
parent fb660fa3c1
commit 325817afdf

View file

@ -8993,7 +8993,7 @@ FxExpression *FxMemberFunctionCall::Resolve(FCompileContext& ctx)
}
else
{
if (PFunction **Override; ctx.Version >= MakeVersion(4, 11, 0) && (Override = static_cast<PDynArray*>(Self->ValueType)->FnOverrides.CheckKey(MethodName)))
if (PFunction **Override; (Override = static_cast<PDynArray*>(Self->ValueType)->FnOverrides.CheckKey(MethodName)))
{
afd_override = *Override;
}