mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-14 00:48:09 +00:00
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
Block a user