summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_utils.h')
-rw-r--r--protocols/Steam/src/steam_utils.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/Steam/src/steam_utils.h b/protocols/Steam/src/steam_utils.h
index aaae1c1fb5..29ac97b1e2 100644
--- a/protocols/Steam/src/steam_utils.h
+++ b/protocols/Steam/src/steam_utils.h
@@ -15,11 +15,9 @@ MBinBuffer createMachineID(const char *accName);
uint64_t getRandomInt();
CMStringA protobuf_c_text_to_string(const ProtobufCMessage &msg);
-inline const char *AccountIdToSteamId(long long accountId)
+inline uint64_t AccountIdToSteamId(uint64_t accountId)
{
- static char steamId[20];
- mir_snprintf(steamId, "%llu", accountId + 76561197960265728ll);
- return steamId;
+ return accountId | 0x110000100000000ll;
}
inline uint64_t SteamIdToAccountId(uint64_t steamId)