Skip to content

Commit 99befdc

Browse files
committed
fix(extra-natives-five): follow up fix
1 parent 9abea28 commit 99befdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/components/extra-natives-five/src/NativeFixes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ static void FixNatives()
746746
fx::ScriptEngine::RegisterNativeHandler(nativeHash, [handler](fx::ScriptContext& ctx)
747747
{
748748
int32_t idx = ctx.GetArgument<uint32_t>(0);
749-
if (idx < 0 || idx < 8)
749+
if (idx < 0 || idx >= 8)
750750
{
751751
return;
752752
}

0 commit comments

Comments
 (0)