4.8 Transition Guide

Im seeing what I think is strange behavior with AGameMode::Possess. Im extending shootergame and spawn a new AI controller. Then I call RestartPlayer on the new AI Controller, and get this error:



Warning Possess function should only be used by the network authority


The code that calls this is:



if (Role = ROLE_Authority)
	{	
	MyGame->RestartPlayer(Cast<AController>(SpawnedPC));
	}


As far as I can tell, Im checking to make sure its only called from the authority. Any ideas why I still get this warning?