Skip to content

Commit

Permalink
server: Fix Checkpoint streamingDistance ctor argument
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Oct 13, 2023
1 parent 30b81b1 commit d75b218
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/src/bindings/Checkpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ static void Constructor(const v8::FunctionCallbackInfo<v8::Value>& 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
{
Expand All @@ -43,13 +43,13 @@ static void Constructor(const v8::FunctionCallbackInfo<v8::Value>& 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);
Expand Down

0 comments on commit d75b218

Please sign in to comment.