Browse Source

Prevent possible null pointer dereference.

fix-cwd-path
Andrey Akhmichin 2 years ago
parent
commit
60bd3121fb
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0
  1. 2
      dlls/client.cpp

2
dlls/client.cpp

@ -817,7 +817,7 @@ void StartFrame( void ) @@ -817,7 +817,7 @@ void StartFrame( void )
g_ulFrameCount++;
int oldBhopcap = g_bhopcap;
g_bhopcap = ( g_pGameRules->IsMultiplayer() && bhopcap.value != 0.0f ) ? 1 : 0;
g_bhopcap = ( g_pGameRules && g_pGameRules->IsMultiplayer() && bhopcap.value != 0.0f ) ? 1 : 0;
if( g_bhopcap != oldBhopcap )
{
MESSAGE_BEGIN( MSG_ALL, gmsgBhopcap, NULL );

Loading…
Cancel
Save