Compare commits

..

No commits in common. "3ed07b6f7228bf55311a402a82f02e5486f25bdc" and "aaf94c7d578070c72dbbae365fdf7352edef94ef" have entirely different histories.

2 changed files with 1 additions and 2 deletions

View File

@ -37,7 +37,7 @@ void UCameraManagerSubsystem::RemoveCameraVolume(ACameraVolume* CameraVolume)
{ {
if (CameraVolume == CurrentCameraVolume) if (CameraVolume == CurrentCameraVolume)
{ {
DequeueCameraVolume(CameraVolume); CameraVolumeQueue.Remove(CameraVolume);
CurrentCameraVolume->SetIsActive(false); CurrentCameraVolume->SetIsActive(false);
CurrentCameraVolume = nullptr; CurrentCameraVolume = nullptr;
} }

View File

@ -24,7 +24,6 @@ void ACameraVolume::BeginPlay()
Super::BeginPlay(); Super::BeginPlay();
this->OnActorBeginOverlap.AddDynamic(this, &ACameraVolume::OnBeginOverlap); this->OnActorBeginOverlap.AddDynamic(this, &ACameraVolume::OnBeginOverlap);
this->OnActorEndOverlap.AddDynamic(this, &ACameraVolume::OnEndOverlap); this->OnActorEndOverlap.AddDynamic(this, &ACameraVolume::OnEndOverlap);
DebugCamera->DestroyComponent();
} }
void ACameraVolume::Tick(float DeltaSeconds) void ACameraVolume::Tick(float DeltaSeconds)