Fix start position was ignored

This commit is contained in:
nsubiron 2017-03-24 19:10:53 +01:00
parent 6c93056fd7
commit 7d7de33f0c
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ void ACarlaGameMode::RestartPlayer(AController* NewPlayer)
check(GameController != nullptr);
APlayerStart *StartSpot = GameController->ChoosePlayerStart(UnOccupiedStartPoints);
if (StartSpot != nullptr) {
RestartPlayerAtPlayerStart(NewPlayer, UnOccupiedStartPoints[0u]);
RestartPlayerAtPlayerStart(NewPlayer, StartSpot);
RegisterPlayer(*NewPlayer);
return;
}