Use empty instead of size

This commit is contained in:
Filip Gawin 2019-02-12 23:47:17 +01:00
commit 49fe9f5db1
28 changed files with 56 additions and 56 deletions

View file

@ -347,7 +347,7 @@ unsigned int NetPlayServer::OnConnect(ENetPeer* socket, sf::Packet& rpac)
Send(player.socket, spac);
// send new client the selected game
if (m_selected_game != "")
if (!m_selected_game.empty())
{
spac.clear();
spac << static_cast<MessageId>(NP_MSG_CHANGE_GAME);