Problem with TActorIterator<AnyType> In Custom "MyPlayerController.cpp"

I didn’t originally. I tried adding it in the header file, and I still receive the same error. Strange enough, I received this error in my other class - in the widget - that uses this. I was able to fix it there by including AMyTank in the header, but not in AMyPlayerController.

EDIT: It only works if I do TActorIterator<AActor> in AMyPlayerController. Could this be a bug?