diff --git a/client/src/bindings/AudioOutput.cpp b/client/src/bindings/AudioOutput.cpp index 3330b10e..d7585f38 100644 --- a/client/src/bindings/AudioOutput.cpp +++ b/client/src/bindings/AudioOutput.cpp @@ -19,7 +19,7 @@ static void AllAudioOutputGetter(v8::Local name, const v8::PropertyC { V8_GET_ISOLATE_CONTEXT_RESOURCE(); - V8_RETURN(resource->GetAllAudioOutputs()->Clone()); + V8_RETURN(resource->GetAllAudioOutputs()); } static void AudioOutputCountGetter(v8::Local name, const v8::PropertyCallbackInfo& info) diff --git a/client/src/bindings/FocusData.cpp b/client/src/bindings/FocusData.cpp index a924db5d..9bd1f9cc 100644 --- a/client/src/bindings/FocusData.cpp +++ b/client/src/bindings/FocusData.cpp @@ -34,7 +34,7 @@ static void OverrideFocus(const v8::FunctionCallbackInfo& info) auto cls = V8Class::ObjectClass::NONE; if(info[0]->IsObject()) - V8Helpers::GetObjectClass(info[0].As()); + cls = V8Helpers::GetObjectClass(info[0].As()); if(cls == V8Class::ObjectClass::VECTOR3) { diff --git a/client/src/bindings/Player.cpp b/client/src/bindings/Player.cpp index 78f84116..5587aecb 100644 --- a/client/src/bindings/Player.cpp +++ b/client/src/bindings/Player.cpp @@ -39,7 +39,7 @@ static void AllGetter(v8::Local name, const v8::PropertyCallbackInfo { V8_GET_ISOLATE_CONTEXT_RESOURCE(); - V8_RETURN(resource->GetAllPlayers()->Clone()); + V8_RETURN(resource->GetAllPlayers()); } static void CountGetter(v8::Local name, const v8::PropertyCallbackInfo& info) diff --git a/client/src/bindings/Vehicle.cpp b/client/src/bindings/Vehicle.cpp index 9c206b07..9c3a03ed 100644 --- a/client/src/bindings/Vehicle.cpp +++ b/client/src/bindings/Vehicle.cpp @@ -66,7 +66,7 @@ static void AllGetter(v8::Local name, const v8::PropertyCallbackInfo { V8_GET_ISOLATE_CONTEXT_RESOURCE(); - V8_RETURN(resource->GetAllVehicles()->Clone()); + V8_RETURN(resource->GetAllVehicles()); } static void CountGetter(v8::Local name, const v8::PropertyCallbackInfo& info) diff --git a/shared/bindings/Blip.cpp b/shared/bindings/Blip.cpp index d1fa896d..7bf394f1 100644 --- a/shared/bindings/Blip.cpp +++ b/shared/bindings/Blip.cpp @@ -199,7 +199,7 @@ static void AllGetter(v8::Local name, const v8::PropertyCallbackInfo { V8_GET_ISOLATE_CONTEXT_RESOURCE(); - V8_RETURN(resource->GetAllBlips()->Clone()); + V8_RETURN(resource->GetAllBlips()); } static void CountGetter(v8::Local name, const v8::PropertyCallbackInfo& info) diff --git a/shared/bindings/ColShape.cpp b/shared/bindings/ColShape.cpp index 36fc1d93..ecfbea6f 100644 --- a/shared/bindings/ColShape.cpp +++ b/shared/bindings/ColShape.cpp @@ -36,7 +36,7 @@ static void AllGetter(v8::Local name, const v8::PropertyCallbackInfo { V8_GET_ISOLATE_CONTEXT_RESOURCE(); - V8_RETURN(resource->GetAllColshapes()->Clone()); + V8_RETURN(resource->GetAllColshapes()); } static void StaticGetByID(const v8::FunctionCallbackInfo& info) diff --git a/shared/bindings/Marker.cpp b/shared/bindings/Marker.cpp index c2785546..8f728d46 100644 --- a/shared/bindings/Marker.cpp +++ b/shared/bindings/Marker.cpp @@ -33,7 +33,7 @@ static void AllGetter(v8::Local name, const v8::PropertyCallbackInfo { V8_GET_ISOLATE_CONTEXT_RESOURCE(); - V8_RETURN(resource->GetAllMarkers()->Clone()); + V8_RETURN(resource->GetAllMarkers()); } static void TypeGetter(v8::Local, const v8::PropertyCallbackInfo& info)