From 3595663c9eaf037116fb2d6c98531335b0640dbd Mon Sep 17 00:00:00 2001 From: bernatx Date: Wed, 20 Jul 2022 11:04:04 +0200 Subject: [PATCH] Fixing returning a copy --- .../Plugins/Carla/Source/Carla/Sensor/OpticalFlowCamera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/OpticalFlowCamera.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/OpticalFlowCamera.cpp index 32febb3f8..94e4bb250 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/OpticalFlowCamera.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/OpticalFlowCamera.cpp @@ -40,7 +40,7 @@ void AOpticalFlowCamera::PostPhysTick(UWorld *World, ELevelTick TickType, float IntermediateBuffer.Add(y); ++Buf; } - return std::move(IntermediateBuffer); + return IntermediateBuffer; }; FPixelReader::SendPixelsInRenderThread(*this, true, Conversor);