Removing one std::move from the same variable

This commit is contained in:
bernatx 2022-11-23 16:30:16 +01:00 committed by bernat
parent edbdb1306e
commit f4334551a0
1 changed files with 10 additions and 10 deletions

View File

@ -415,23 +415,23 @@ TPair<EActorSpawnResultStatus, FCarlaActor*> UCarlaEpisode::SpawnActorWithInfo(
auto result = ActorDispatcher->SpawnActor(LocalTransform, thisActorDescription, DesiredId);
if (result.Key == EActorSpawnResultStatus::Success && bIsPrimaryServer)
{
GetFrameData().CreateRecorderEventAdd(
result.Value->GetActorId(),
static_cast<uint8_t>(result.Value->GetActorType()),
Transform,
std::move(thisActorDescription));
}
if (Recorder->IsEnabled())
{
if (result.Key == EActorSpawnResultStatus::Success)
if (Recorder->IsEnabled())
{
Recorder->CreateRecorderEventAdd(
result.Value->GetActorId(),
static_cast<uint8_t>(result.Value->GetActorType()),
Transform,
std::move(thisActorDescription)
thisActorDescription
);
}
if (bIsPrimaryServer)
{
GetFrameData().CreateRecorderEventAdd(
result.Value->GetActorId(),
static_cast<uint8_t>(result.Value->GetActorType()),
Transform,
std::move(thisActorDescription));
}
}
return result;