From 0a13aad7de58f74ad8b0bcc5824038804d6bddd2 Mon Sep 17 00:00:00 2001 From: xshady <54737754+xxshady@users.noreply.github.com> Date: Sat, 30 Sep 2023 20:52:01 +0300 Subject: [PATCH] client: Fix LocalPed & LocalVehicle constructors --- client/src/bindings/LocalPed.cpp | 2 +- client/src/bindings/LocalVehicle.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/bindings/LocalPed.cpp b/client/src/bindings/LocalPed.cpp index 8a7ca0aa..c14f2be5 100644 --- a/client/src/bindings/LocalPed.cpp +++ b/client/src/bindings/LocalPed.cpp @@ -11,7 +11,7 @@ static void Constructor(const v8::FunctionCallbackInfo& info) { V8_GET_ISOLATE_CONTEXT_RESOURCE(); V8_CHECK_CONSTRUCTOR(); - V8_CHECK_ARGS_LEN(6); + V8_CHECK_ARGS_LEN_MIN_MAX(4, 6); uint32_t modelHash; if(info[0]->IsString()) diff --git a/client/src/bindings/LocalVehicle.cpp b/client/src/bindings/LocalVehicle.cpp index 006765b4..d1f56099 100644 --- a/client/src/bindings/LocalVehicle.cpp +++ b/client/src/bindings/LocalVehicle.cpp @@ -11,7 +11,7 @@ static void Constructor(const v8::FunctionCallbackInfo& info) { V8_GET_ISOLATE_CONTEXT_RESOURCE(); V8_CHECK_CONSTRUCTOR(); - V8_CHECK_ARGS_LEN(6); + V8_CHECK_ARGS_LEN_MIN_MAX(4, 6); uint32_t modelHash; if(info[0]->IsString())