Permalink
Browse files

Don't memset clc. It contains a std::string.

  • Loading branch information...
DolceTriade committed Apr 11, 2016
1 parent c416d1f commit 76aa82c64ef552640f03f0f2efafa1ab0442726a
Showing with 2 additions and 1 deletion.
  1. +2 −1 daemon/src/engine/client/cl_main.cpp
@@ -1114,7 +1114,8 @@ void CL_Disconnect( bool showMainMenu )
CL_ClearState();
// wipe the client connection
Com_Memset( &clc, 0, sizeof( clc ) );
clc.~clientConnection_t();
new(&clc) clientConnection_t{}; // Using {} instead of () to work around MSVC bug
if ( !cls.bWWWDlDisconnected )
{

0 comments on commit 76aa82c

Please sign in to comment.