Browse Source

Fix players registering with a bad ID

Connecting players were handled too early, when their id hash was not
yet correctly setup.
pull/8/head
Anton Tarasenko 3 years ago
parent
commit
b1589217c4
  1. 2
      sources/Unreal/Connections/ConnectionService.uc

2
sources/Unreal/Connections/ConnectionService.uc

@ -238,7 +238,7 @@ function bool TryAddingController(Actor other, out byte isSuperRelevant)
// for each new `PlayerController`, // for each new `PlayerController`,
// we will be detecting new users right after server // we will be detecting new users right after server
// detected and properly initialized them. // detected and properly initialized them.
if (KFSteamStatsAndAchievements(other) == none) { if (KFSteamStatsAndAchievements(other) != none) {
RegisterConnection(PlayerController(other.owner)); RegisterConnection(PlayerController(other.owner));
} }
return true; return true;

Loading…
Cancel
Save