From f7eb15bf537d96fea0b17b64f9bb09dbd028e16e Mon Sep 17 00:00:00 2001 From: KimLS Date: Sat, 14 Jan 2017 16:06:55 -0800 Subject: [PATCH] This is throwing an error on gcc --- common/net/packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.");