diff --git a/Source/StevesUEHelpers/Private/StevesPooledActorSystem.cpp b/Source/StevesUEHelpers/Private/StevesPooledActorSystem.cpp index 148ffdd..e315ff5 100644 --- a/Source/StevesUEHelpers/Private/StevesPooledActorSystem.cpp +++ b/Source/StevesUEHelpers/Private/StevesPooledActorSystem.cpp @@ -118,7 +118,9 @@ void UStevesPooledActorSystem::DisableActor(AActor* Actor) if (auto Prim = Cast(Actor->GetRootComponent())) { Prim->SetSimulatePhysics(false); +#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 3 Prim->ResetSceneVelocity(); +#endif } Actor->SetActorLocation(StorageLocation, false, nullptr, ETeleportType::ResetPhysics); diff --git a/Source/StevesUEHelpers/Private/StevesSpringArmComponent.cpp b/Source/StevesUEHelpers/Private/StevesSpringArmComponent.cpp index c4fb6ed..b3ce1fa 100644 --- a/Source/StevesUEHelpers/Private/StevesSpringArmComponent.cpp +++ b/Source/StevesUEHelpers/Private/StevesSpringArmComponent.cpp @@ -1,5 +1,6 @@  #include "StevesSpringArmComponent.h" +#include "VisualLogger/VisualLogger.h" #include "StevesUEHelpers.h"