diff --git a/EndlessVendetta/Source/EndlessVendetta/BountySystem/CheckPoints/FinalCheckpoint.cpp b/EndlessVendetta/Source/EndlessVendetta/BountySystem/CheckPoints/FinalCheckpoint.cpp index 2556bda7..2284bfef 100644 --- a/EndlessVendetta/Source/EndlessVendetta/BountySystem/CheckPoints/FinalCheckpoint.cpp +++ b/EndlessVendetta/Source/EndlessVendetta/BountySystem/CheckPoints/FinalCheckpoint.cpp @@ -14,6 +14,12 @@ void AFinalCheckpoint::CompleteBounty() GI->MainSaveGameInstanceRef->CurrentMainBountyIndexSave++; UGameplayStatics::SaveGameToSlot(GI->MainSaveGameInstanceRef, "MainSave", 0); + if (UGameplayStatics::GetCurrentLevelName(GetWorld()) == "Apartment_hit") + { + UGameplayStatics::OpenLevel(GetWorld(), "MainMenuLevel"); + return; + } + FName OpnWrldLvlName = FName(Cast(GetWorld()->GetFirstPlayerController()->GetPawn())->GetOpenWorldLevelName()); UGameplayStatics::OpenLevel(GetWorld(), OpnWrldLvlName); }