From f24c4d2c9e805c6a985c1087634de60349077c5f Mon Sep 17 00:00:00 2001 From: Artem Dzhemesiuk Date: Thu, 5 Oct 2023 14:52:15 +0200 Subject: [PATCH] Fixed Audio constructor argument count --- client/src/bindings/Audio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/bindings/Audio.cpp b/client/src/bindings/Audio.cpp index 2383439c..e7df7cd0 100644 --- a/client/src/bindings/Audio.cpp +++ b/client/src/bindings/Audio.cpp @@ -12,7 +12,7 @@ static void Constructor(const v8::FunctionCallbackInfo& info) { V8_GET_ISOLATE_CONTEXT_RESOURCE(); V8_CHECK_CONSTRUCTOR(); - V8_CHECK_ARGS_LEN_MIN_MAX(1, 3); + V8_CHECK_ARGS_LEN_MIN_MAX(1, 4); V8_ARG_TO_STRING(1, source); V8_ARG_TO_NUMBER_OPT(2, volume, 1.f);