Fixed compiler warnings.

This commit is contained in:
hiker 2018-12-10 10:51:54 +11:00
parent 282e178468
commit f6398f3661
2 changed files with 2 additions and 2 deletions

2
src/network/peer_vote.hpp Normal file → Executable file
View File

@ -56,7 +56,7 @@ public:
ns.decodeStringW(&m_player_name);
ns.decodeString(&m_track_name);
m_num_laps = ns.getUInt8();
m_reverse = ns.getUInt8();
m_reverse = ns.getUInt8()!=0;
} // PeerVote(NetworkString &)

2
src/network/protocols/lobby_protocol.hpp Normal file → Executable file
View File

@ -154,7 +154,7 @@ public:
GameSetup* getGameSetup() const { return m_game_setup; }
// ------------------------------------------------------------------------
/** Returns the number of votes received so far. */
int getNumberOfVotes() const { return m_peers_votes.size(); }
int getNumberOfVotes() const { return (int)m_peers_votes.size(); }
// -----------------------------------------------------------------------
/** Adds a vote.
* \param host_id Host id of this vote.