From 2cd2b9502fc1f0b65f77276acb12792c2644d3d0 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 7 Jun 2021 16:56:29 +0800 Subject: [PATCH] Sender doesn't guarantee anything about pos, this doesn't seem to work on Win32 host --- nel/src/net/unified_network.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nel/src/net/unified_network.cpp b/nel/src/net/unified_network.cpp index 0ac8b1c21..0c2943f54 100644 --- a/nel/src/net/unified_network.cpp +++ b/nel/src/net/unified_network.cpp @@ -266,9 +266,14 @@ void uncbServiceIdentification(CMessage &msgin, TSockId from, CCallbackNetBase & nlinfo ("HNETL5: + connect ident '%s' %s-%hu pos %hu ext %d", from->asString().c_str(), inSName.c_str(), inSid.get(), (uint16)pos, (uint8)isExternal); - if(isExternal) + if (isExternal) { - nlassert (pos == 0); + +#ifdef NL_OS_WINDOWS + pos = 0; +#else + nlassert(pos == 0); +#endif } if (inSid.get() == 0)