Fix crash

This commit is contained in:
Federico Cecchetto 2022-06-02 01:30:51 +02:00
parent 64e0ca5c32
commit dbe9a4649a

View File

@ -38,7 +38,8 @@ namespace game
void SV_GameSendServerCommand(int client_num, svscmd_type type, const char* text) void SV_GameSendServerCommand(int client_num, svscmd_type type, const char* text)
{ {
if (*mp::svs_clients == nullptr) const auto svs_clients = *mp::svs_clients;
if (svs_clients == nullptr)
{ {
return; return;
} }
@ -49,7 +50,7 @@ namespace game
} }
else else
{ {
SV_SendServerCommand(mp::svs_clients[client_num], type, "%s", text); SV_SendServerCommand(&svs_clients[client_num], type, "%s", text);
} }
} }