From d75b21815d317d4460e8a18ffd2be318783a84cb Mon Sep 17 00:00:00 2001 From: xLuxy <67131061+xLuxy@users.noreply.github.com> Date: Fri, 13 Oct 2023 21:24:49 +0200 Subject: [PATCH] server: Fix Checkpoint streamingDistance ctor argument --- server/src/bindings/Checkpoint.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/bindings/Checkpoint.cpp b/server/src/bindings/Checkpoint.cpp index 237353f3..dbe41e14 100644 --- a/server/src/bindings/Checkpoint.cpp +++ b/server/src/bindings/Checkpoint.cpp @@ -24,13 +24,13 @@ static void Constructor(const v8::FunctionCallbackInfo& info) V8_ARG_TO_NUMBER(3, radiusVal); V8_ARG_TO_NUMBER(4, heightVal); V8_ARG_TO_RGBA(5, colorVal); - V8_ARG_TO_UINT(6, streamingDistance) + V8_ARG_TO_UINT(6, _streamingDistance) pos = posVal; color = colorVal; radius = radiusVal; height = heightVal; - streamingDistance = streamingDistance; + streamingDistance = _streamingDistance; } else { @@ -43,13 +43,13 @@ static void Constructor(const v8::FunctionCallbackInfo& info) V8_ARG_TO_INT(8, g); V8_ARG_TO_INT(9, b); V8_ARG_TO_INT(10, a); - V8_ARG_TO_UINT(11, streamingDistance) + V8_ARG_TO_UINT(11, _streamingDistance) pos = { x, y, z }; color = { (uint8_t)r, (uint8_t)g, (uint8_t)b, (uint8_t)a }; radius = radiusVal; height = heightVal; - streamingDistance = streamingDistance; + streamingDistance = _streamingDistance; } ICheckpoint* cp = ICore::Instance().CreateCheckpoint(type, pos, radius, height, color, streamingDistance);