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 authored and madame-rachelle committed Dec 12, 2024
1 parent 1d04bd3 commit 7fed2b8
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 7fed2b8

Please sign in to comment.