mirror of https://github.com/FWGS/hlsdk-xash3d
Prevent possible null pointer dereference.
This commit is contained in:
parent
06521e8950
commit
60bd3121fb
|
@ -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…
Reference in New Issue