From b1589217c4f749bec428324e602eb55142d6934f Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Sun, 14 Nov 2021 01:25:31 +0700 Subject: [PATCH] Fix players registering with a bad ID Connecting players were handled too early, when their id hash was not yet correctly setup. --- sources/Unreal/Connections/ConnectionService.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Unreal/Connections/ConnectionService.uc b/sources/Unreal/Connections/ConnectionService.uc index e24b39a..30ac2fa 100644 --- a/sources/Unreal/Connections/ConnectionService.uc +++ b/sources/Unreal/Connections/ConnectionService.uc @@ -238,7 +238,7 @@ function bool TryAddingController(Actor other, out byte isSuperRelevant) // for each new `PlayerController`, // we will be detecting new users right after server // detected and properly initialized them. - if (KFSteamStatsAndAchievements(other) == none) { + if (KFSteamStatsAndAchievements(other) != none) { RegisterConnection(PlayerController(other.owner)); } return true;