Skip to content

Commit

Permalink
remove version check for array type fix, to prevent crashes/etc with …
Browse files Browse the repository at this point in the history
…bad types
  • Loading branch information
RicardoLuis0 committed Dec 10, 2024
1 parent fb660fa commit 20f4f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/scripting/backend/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 20f4f3b

Please sign in to comment.