mirror of
https://github.com/rehlds/rehlds.git
synced 2025-02-05 02:00:34 +03:00
Prevent crash when steam not active yet
This commit is contained in:
parent
e6a9fd1095
commit
780afd0227
@ -2495,6 +2495,11 @@ int EXT_FUNC SV_GetChallenge(const netadr_t& adr)
|
|||||||
|
|
||||||
void SVC_GetChallenge(void)
|
void SVC_GetChallenge(void)
|
||||||
{
|
{
|
||||||
|
#ifdef REHLDS_FIXES
|
||||||
|
if (!g_psv.active)
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
char data[1024];
|
char data[1024];
|
||||||
qboolean steam = (Cmd_Argc() == 2 && !Q_stricmp(Cmd_Argv(1), "steam"));
|
qboolean steam = (Cmd_Argc() == 2 && !Q_stricmp(Cmd_Argv(1), "steam"));
|
||||||
int challenge = SV_GetChallenge(net_from);
|
int challenge = SV_GetChallenge(net_from);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user