Skip to content

Commit

Permalink
Fix warn messages on disconnect peer wiithout return type
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptsengineer committed May 4, 2024
1 parent 76fbefb commit ee89e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions steam-multiplayer-peer/steam_multiplayer_peer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ void SteamMultiplayerPeer::_close() {
}

void SteamMultiplayerPeer::_disconnect_peer(int32_t p_peer, bool p_force) {
ERR_FAIL_COND_V_MSG(!_is_active(), "The multiplayer instance isn't currently active.");
ERR_FAIL_COND_V_MSG(!peerId_to_steamId.has(p_peer), "'PeerConnection' not registered for steam_id. Try p_force true if need clear all multiplayer data.");
ERR_FAIL_COND_MSG(!_is_active(), "The multiplayer instance isn't currently active.");
ERR_FAIL_COND_MSG(!peerId_to_steamId.has(p_peer), "'PeerConnection' not registered for steam_id. Try p_force true if need clear all multiplayer data.");
Ref<SteamConnection> connection = get_connection_by_peer(p_peer);
bool result = connection->close();
if (!result) {
Expand Down

0 comments on commit ee89e31

Please sign in to comment.