Skip to content

Commit

Permalink
cast fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ISPlatonov committed Jan 9, 2024
1 parent 7bd3016 commit 88dd9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/Constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PlayerId {

inline sf::Packet& operator <<(sf::Packet& packet, const PlayerId& id)
{
packet << id.getIp() << id.getPort() << id.getTimestamp() << id.getKey();
packet << static_cast<sf::Uint64>(id.getIp()) << static_cast<sf::Uint64>(id.getPort()) << static_cast<sf::Uint64>(id.getTimestamp()) << static_cast<sf::Uint64>(id.getKey());
return packet;
}

Expand Down

0 comments on commit 88dd9e3

Please sign in to comment.