The ReceivedSpectatorClass function in APlayerController may have an incorrect parameter. The parameter it takes in is TSubclassOf<AGameMode> SpectatorClass, but this may be intended to be TSubclassOf<ASpectatorPawn> SpectatorClass.
In Main, the function does not appear to use the parameter at all, so it may even be unnecessary.
RESULTS:
Note that the function and parameter name refer to the Spectator class, but the parameter is a subclass of GameMode.
EXPECTED:
The parameter is a subclass of SpectatorPawn.
Head over to the existing Questions & Answers thread and let us know what's up.
| 0 |
| Component | UE - Gameplay |
|---|---|
| Affects Versions | 4.7.6, 4.9 |
| Target Fix | 4.9 |
| Fix Commit | 2617210 |
|---|
| Created | Jul 7, 2015 |
|---|---|
| Resolved | Jul 10, 2015 |
| Updated | Apr 27, 2018 |