mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-09 22:28:38 +01:00
Fixed crash when getlobbydata key is null.
This commit is contained in:
parent
e9cdbdd07f
commit
9b9c440fbc
1 changed files with 2 additions and 0 deletions
|
@ -739,6 +739,7 @@ CSteamID GetLobbyMemberByIndex( CSteamID steamIDLobby, int iMember )
|
|||
const char *GetLobbyData( CSteamID steamIDLobby, const char *pchKey )
|
||||
{
|
||||
PRINT_DEBUG("GetLobbyData %llu %s\n", steamIDLobby.ConvertToUint64(), pchKey);
|
||||
if (!pchKey) return "";
|
||||
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||
Lobby *lobby = get_lobby(steamIDLobby);
|
||||
const char *ret = "";
|
||||
|
@ -844,6 +845,7 @@ bool DeleteLobbyData( CSteamID steamIDLobby, const char *pchKey )
|
|||
const char *GetLobbyMemberData( CSteamID steamIDLobby, CSteamID steamIDUser, const char *pchKey )
|
||||
{
|
||||
PRINT_DEBUG("GetLobbyMemberData %s %llu %llu\n", pchKey, steamIDLobby.ConvertToUint64(), steamIDUser.ConvertToUint64());
|
||||
if (!pchKey) return "";
|
||||
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||
struct Lobby_Member *member = get_lobby_member(get_lobby(steamIDLobby), steamIDUser);
|
||||
const char *ret = "";
|
||||
|
|
Loading…
Reference in a new issue