diff --git a/common/net/packet.h b/common/net/packet.h index c7d1cdac6..380cb9d98 100644 --- a/common/net/packet.h +++ b/common/net/packet.h @@ -40,7 +40,7 @@ namespace EQ { cereal::BinaryOutputArchive output(m_stream); output(value); - auto &str = m_stream.str(); + auto str = m_stream.str(); if (Length() < offset + str.length()) { if (!Resize(offset + str.length())) { throw std::out_of_range("Packet::PutSerialize(), could not resize packet and would of written past the end.");