summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_proto.cpp')
-rw-r--r--protocols/Steam/src/steam_proto.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp
index fec169b376..2e175c8317 100644
--- a/protocols/Steam/src/steam_proto.cpp
+++ b/protocols/Steam/src/steam_proto.cpp
@@ -52,10 +52,9 @@ CSteamProto::~CSteamProto()
MCONTACT __cdecl CSteamProto::AddToList(int flags, PROTOSEARCHRESULT* psr)
{
MCONTACT hContact = NULL;
-
+ ptrA steamId(mir_u2a(psr->id));
if (psr->cbSize == sizeof(PROTOSEARCHRESULT))
{
- ptrA steamId(mir_u2a(psr->id));
if (!FindContact(steamId))
{
//hContact = AddContact(steamId, true);
@@ -71,7 +70,7 @@ MCONTACT __cdecl CSteamProto::AddToList(int flags, PROTOSEARCHRESULT* psr)
else if (psr->cbSize == sizeof(STEAM_SEARCH_RESULT))
{
STEAM_SEARCH_RESULT *ssr = (STEAM_SEARCH_RESULT*)psr;
- hContact = AddContact(ssr->contact->GetSteamId(), true);
+ hContact = AddContact(steamId, true);
UpdateContact(hContact, ssr->data);
}