diff --git a/Source/UTAD_UI/SkillTree/SkillTreeSubsystem.cpp b/Source/UTAD_UI/SkillTree/SkillTreeSubsystem.cpp index 8d4bb84..0907510 100644 --- a/Source/UTAD_UI/SkillTree/SkillTreeSubsystem.cpp +++ b/Source/UTAD_UI/SkillTree/SkillTreeSubsystem.cpp @@ -1,4 +1,4 @@ -#include "SkillTreeManager.h" +#include "SkillTreeSubsystem.h" #include "SkillTreeComponent.h" #include "Engine/World.h" #include "Kismet/GameplayStatics.h" diff --git a/Source/UTAD_UI/UTAD_UIGameMode.cpp b/Source/UTAD_UI/UTAD_UIGameMode.cpp index fbb2800..b52cb7a 100644 --- a/Source/UTAD_UI/UTAD_UIGameMode.cpp +++ b/Source/UTAD_UI/UTAD_UIGameMode.cpp @@ -12,18 +12,32 @@ AUTAD_UIGameMode::AUTAD_UIGameMode() // set default pawn class to our Blueprinted character static ConstructorHelpers::FClassFinder PlayerPawnBPClass( - TEXT("/Game/Blueprints/BP_TopDownCharacter")); - if (PlayerPawnBPClass.Class != nullptr) + TEXT("/Game/Blueprints/BP_MainCharacter")); + if (PlayerPawnBPClass.Class) { DefaultPawnClass = PlayerPawnBPClass.Class; } + else + { + UE_LOG( + LogTemp, Error, + TEXT( + "AUTAD_UIGameMode::AUTAD_UIGameMode(): Failed to find BP_MainCharacter. Please ensure it exists")); + } // set default controller to our Blueprinted controller static ConstructorHelpers::FClassFinder PlayerControllerBPClass( - TEXT("/Game/Blueprints/BP_TopDownPlayerController")); - if (PlayerControllerBPClass.Class != NULL) + TEXT("/Game/Blueprints/BP_MainPlayerController")); + if (PlayerControllerBPClass.Class) { PlayerControllerClass = PlayerControllerBPClass.Class; } + else + { + UE_LOG( + LogTemp, Error, + TEXT( + "AUTAD_UIGameMode::AUTAD_UIGameMode(): Failed to find BP_MainPlayerController. Please ensure it exists")); + } }