From 715353086c1984be5d147e7817561d707d36acb3 Mon Sep 17 00:00:00 2001 From: Sammy Fatnassi Date: Wed, 11 Dec 2024 18:50:07 -0500 Subject: [PATCH] Fixed compiler warning --- Code/Client/Private/NetImgui_Client.cpp | 3 +++ Code/Client/Private/NetImgui_Client.h | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Code/Client/Private/NetImgui_Client.cpp b/Code/Client/Private/NetImgui_Client.cpp index 499dfef..11866dd 100644 --- a/Code/Client/Private/NetImgui_Client.cpp +++ b/Code/Client/Private/NetImgui_Client.cpp @@ -529,6 +529,9 @@ ClientInfo::ClientInfo() , mFontTextureID(TextureCastFromUInt(uint64_t(0u))) , mTexturesPendingSent(0) , mTexturesPendingCreated(0) +, mbClientThreadActive(false) +, mbListenThreadActive(false) +, mbComInitActive(false) { memset(mTexturesPending, 0, sizeof(mTexturesPending)); } diff --git a/Code/Client/Private/NetImgui_Client.h b/Code/Client/Private/NetImgui_Client.h index 8647134..a5414e7 100644 --- a/Code/Client/Private/NetImgui_Client.h +++ b/Code/Client/Private/NetImgui_Client.h @@ -114,9 +114,9 @@ struct ClientInfo std::atomic_uint32_t mTexturesPendingSent; std::atomic_uint32_t mTexturesPendingCreated; - std::atomic_bool mbClientThreadActive = false; // True when connected and communicating with Server - std::atomic_bool mbListenThreadActive = false; // True when listening from connection request from Server - std::atomic_bool mbComInitActive = false; // True when attempting to initialize a new connection + std::atomic_bool mbClientThreadActive; // True when connected and communicating with Server + std::atomic_bool mbListenThreadActive; // True when listening from connection request from Server + std::atomic_bool mbComInitActive; // True when attempting to initialize a new connection bool mbHasTextureUpdate = false; bool mbIsDrawing = false; // We are inside a 'NetImgui::NewFrame' / 'NetImgui::EndFrame' (even if not for a remote draw) bool mbIsRemoteDrawing = false; // True if the rendering it meant for the remote netImgui server