diff --git a/Source/Nakatomi/LevelEndTriggerVolume.cpp b/Source/Nakatomi/LevelEndTriggerVolume.cpp index a4cfaca..a86a32b 100644 --- a/Source/Nakatomi/LevelEndTriggerVolume.cpp +++ b/Source/Nakatomi/LevelEndTriggerVolume.cpp @@ -35,7 +35,10 @@ void ALevelEndTriggerVolume::OnOverlapBegin(UPrimitiveComponent* OverlappedCompo { GetCollisionComponent()->OnComponentBeginOverlap.Clear(); - gameInstance->GetCurrentLevelManager()->LoadNextLevel(NextLevel); + if (!NextLevel.IsNull()) + { + UGameplayStatics::OpenLevelBySoftObjectPtr(GetWorld(), NextLevel); + } this->Destroy(); }