Fix non-editor builds

This commit is contained in:
Steve Streeting 2024-08-15 18:18:16 +01:00
parent d861e3b413
commit 8b87c62c03

View File

@ -104,7 +104,9 @@ AActor* UStevesPooledActorSystem::SpawnNewActor(UClass* Class, const FVector& Lo
Params.NameMode = FActorSpawnParameters::ESpawnActorNameMode::Requested;
Params.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AdjustIfPossibleButAlwaysSpawn;
AActor* Ret = GetWorld()->SpawnActor(Class, &Location, &Rotation, Params);
#if WITH_EDITOR
Ret->SetActorLabel(Ret->GetName());
#endif
return Ret;
}