diff --git a/EndlessVendetta/.idea/.idea.EndlessVendetta/.idea/workspace.xml b/EndlessVendetta/.idea/.idea.EndlessVendetta/.idea/workspace.xml
index e65ed336..22d6f8ba 100644
--- a/EndlessVendetta/.idea/.idea.EndlessVendetta/.idea/workspace.xml
+++ b/EndlessVendetta/.idea/.idea.EndlessVendetta/.idea/workspace.xml
@@ -7,27 +7,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -149,7 +129,7 @@
-
+
diff --git a/EndlessVendetta/Content/MainMenu/Gameplay/MainMenuPlayerController.uasset b/EndlessVendetta/Content/MainMenu/Gameplay/MainMenuPlayerController.uasset
index 142ba9c9..c9047e60 100644
--- a/EndlessVendetta/Content/MainMenu/Gameplay/MainMenuPlayerController.uasset
+++ b/EndlessVendetta/Content/MainMenu/Gameplay/MainMenuPlayerController.uasset
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:fb2866d4ceb699f5ab8a45d5fe54ca1d4c7110cd78fde174771b73e6a9bc2253
-size 108722
+oid sha256:3be7dbbcdd1961057cca4f605b514d0d627ebe068e0f5255eecb7ae4be051610
+size 117724
diff --git a/EndlessVendetta/Source/EndlessVendetta/EVGameInstance.cpp b/EndlessVendetta/Source/EndlessVendetta/EVGameInstance.cpp
index 663ed63e..719e7fbd 100644
--- a/EndlessVendetta/Source/EndlessVendetta/EVGameInstance.cpp
+++ b/EndlessVendetta/Source/EndlessVendetta/EVGameInstance.cpp
@@ -14,11 +14,11 @@ void UEVGameInstance::CreateNewSaveGameInstance()
UGameplayStatics::SaveGameToSlot(MainSaveGameInstanceRef, "MainSave", 0);
}
-void UEVGameInstance::LoadSaveGameInstance()
+int UEVGameInstance::LoadSaveGameInstance()
{
- if (!UGameplayStatics::DoesSaveGameExist("MainSave", 0)) return;
- UE_LOG(LogTemp, Warning, TEXT("Loading Game Save into GI"));
+ if (!UGameplayStatics::DoesSaveGameExist("MainSave", 0)) return 0;
MainSaveGameInstanceRef = Cast(UGameplayStatics::LoadGameFromSlot("MainSave", 0));
+ return MainSaveGameInstanceRef->CurrentMainBountyIndexSave;
}
void UEVGameInstance::OnStart()
diff --git a/EndlessVendetta/Source/EndlessVendetta/EVGameInstance.h b/EndlessVendetta/Source/EndlessVendetta/EVGameInstance.h
index 208cf308..91c39f97 100644
--- a/EndlessVendetta/Source/EndlessVendetta/EVGameInstance.h
+++ b/EndlessVendetta/Source/EndlessVendetta/EVGameInstance.h
@@ -27,7 +27,7 @@ public:
void CreateNewSaveGameInstance();
UFUNCTION(BlueprintCallable)
- void LoadSaveGameInstance();
+ int LoadSaveGameInstance();
protected:
virtual void OnStart() override;