On lines 40-45 in my TankAIController.cpp it has this:
ATank* ATankAIController::GetPlayerTank() const
{
auto PlayerPawn = GetWorld()->GetFirstPlayerController()->GetPawn();
if (!PlayerPawn) { return nullptr; }
return Cast<ATank>(PlayerPawn);
}
Then, under GetWorld() it says error E0393, “pointer to incomplete class type not allowed”. Any help?
I just checked, and now line 68 in the TankPlayerController.cpp has the error under GetWorld().
Just a side note, it still compiles just fine.