Skip to content

Commit

Permalink
Fix get_steam64_from_peer_id get -1 ever
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptsengineer committed Oct 15, 2023
1 parent d8b612a commit 8e5c502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steam-multiplayer-peer/steam_multiplayer_peer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ void SteamMultiplayerPeer::_process_ping(const SteamNetworkingMessage_t *msg) {
uint64_t SteamMultiplayerPeer::get_steam64_from_peer_id(const uint32_t peer_id) const {
if (peer_id == this->unique_id) {
return SteamUser()->GetSteamID().ConvertToUint64();
} else if (peerId_to_steamId.find(peer_id) == peerId_to_steamId.end()) {
} else if (peerId_to_steamId.has(peer_id)) {
return peerId_to_steamId[peer_id]->steam_id;
} else
return -1;
Expand Down

0 comments on commit 8e5c502

Please sign in to comment.