Fixed player assignments when loading multiple players

This commit is contained in:
Boondorl 2025-06-12 10:38:50 -04:00 committed by Rachael Alexanderson
commit e435a4ef64

View file

@ -734,8 +734,7 @@ void FLevelLocals::ReadMultiplePlayers(FSerializer &arc, int numPlayers, bool fr
{
TArray<NetworkPlayerInfo> tempPlayers = {};
tempPlayers.Reserve(numPlayers);
TArray<bool> assignedPlayers = {};
assignedPlayers.Reserve(MAXPLAYERS);
bool assignedPlayers[MAXPLAYERS] = {};
// Read all the save game players into a temporary array
for (auto& p : tempPlayers)