Description

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.

Steps to Reproduce
  1. Open UE4.sln in Visual Studio.
  2. Open the PlayerController.cpp file.
  3. Locate the ReceivedSpectatorClass function.
    • Line 3652 in CL 2605171

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.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Gameplay
Affects Versions4.7.64.9
Target Fix4.9
Fix Commit2617210
CreatedJul 7, 2015
ResolvedJul 10, 2015
UpdatedApr 27, 2018
View Jira Issue