From cffef34d9b51bf58508ad0c76b2956a72a81c3cf Mon Sep 17 00:00:00 2001 From: baz Date: Mon, 11 Mar 2024 21:14:13 +0000 Subject: [PATCH] IncrementCollectedLevelKeys instead of InitialLevelKeys --- Source/Nakatomi/LevelKeyPickup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Nakatomi/LevelKeyPickup.cpp b/Source/Nakatomi/LevelKeyPickup.cpp index 01ac428..98d141d 100644 --- a/Source/Nakatomi/LevelKeyPickup.cpp +++ b/Source/Nakatomi/LevelKeyPickup.cpp @@ -26,7 +26,7 @@ void ALevelKeyPickup::OnOverlapBegin(UPrimitiveComponent* OverlappedComponent, A { if (auto gameInstance = Cast(UGameplayStatics::GetGameInstance(GetWorld()))) { - gameInstance->GetCurrentLevelManager()->IncrementInitialLevelKeys(); + gameInstance->GetCurrentLevelManager()->IncrementCollectedLevelKeys(); } Super::OnOverlapBegin(OverlappedComponent, OtherActor, OtherComp, OtherBodyIndex, bFromSweep, SweepResult);