From 88dd9e3eec56a3c66aae425100a0439e8dd769e6 Mon Sep 17 00:00:00 2001 From: isplatonov Date: Tue, 9 Jan 2024 05:17:38 +0100 Subject: [PATCH] cast fix --- include/Constants.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }