diff --git a/include/Constants.hpp b/include/Constants.hpp index d842553..9d75cac 100644 --- a/include/Constants.hpp +++ b/include/Constants.hpp @@ -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(id.getIp()) << static_cast(id.getPort()) << static_cast(id.getTimestamp()) << static_cast(id.getKey()); return packet; }