From: Stas'M Date: Mon, 7 Mar 2022 20:52:10 +0000 (+0300) Subject: Player: Add sanity check for network client peer X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=37a525107ea208b80af57fff906ac083c9c04945;p=d2df-sdl.git Player: Add sanity check for network client peer --- diff --git a/src/game/g_player.pas b/src/game/g_player.pas index 759450b..89e3dee 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -4927,7 +4927,7 @@ begin DoLerp(4); if NetServer then - if FClientID >= 0 then + if (FClientID >= 0) and (NetClients[FClientID].Peer <> nil) then begin FPing := NetClients[FClientID].Peer^.lastRoundTripTime; if NetClients[FClientID].Peer^.packetsSent > 0 then