From d49d5cdebc16ea3341d82bbf6d6c8f74dfc6eacb Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Mon, 6 Nov 2023 14:07:38 -0500 Subject: [PATCH] ehm --- SQCSim-common/netprotocol.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SQCSim-common/netprotocol.cpp b/SQCSim-common/netprotocol.cpp index fbc5fb5..c6c25dd 100644 --- a/SQCSim-common/netprotocol.cpp +++ b/SQCSim-common/netprotocol.cpp @@ -1014,7 +1014,8 @@ std::vector netprot::recvPacks(SOCKET sock, Buffer* buf, Buffer* outbuf) } } else { - buf->tmp = last; + if (!outbuf) + buf->tmp = last; cursor = &buf->ptr[len]; next = cursor + 1; break;