Removing one std::move from the same variable
This commit is contained in:
parent
edbdb1306e
commit
f4334551a0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue