diff --git a/src/network/packet.h b/src/network/packet.h index 5a2e58dc20..7bdc3da958 100644 --- a/src/network/packet.h +++ b/src/network/packet.h @@ -126,7 +126,7 @@ Packet& Packet::operator>>(std::vector& out_data) { // Then extract the data for (std::size_t i = 0; i < out_data.size(); ++i) { - T character = 0; + T character; *this >> character; out_data[i] = character; } @@ -136,7 +136,7 @@ Packet& Packet::operator>>(std::vector& out_data) { template Packet& Packet::operator>>(std::array& out_data) { for (std::size_t i = 0; i < out_data.size(); ++i) { - T character = 0; + T character; *this >> character; out_data[i] = character; }