2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-02-04 17:50:36 +03:00

Prevent crash when steam not active yet

This commit is contained in:
s1lent 2017-12-20 20:49:36 +07:00
parent e6a9fd1095
commit 780afd0227
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -2495,6 +2495,11 @@ int EXT_FUNC SV_GetChallenge(const netadr_t& adr)
void SVC_GetChallenge(void)
{
#ifdef REHLDS_FIXES
if (!g_psv.active)
return;
#endif
char data[1024];
qboolean steam = (Cmd_Argc() == 2 && !Q_stricmp(Cmd_Argv(1), "steam"));
int challenge = SV_GetChallenge(net_from);