summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/NetPlayGolfUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/NetPlayGolfUI.cpp')
-rw-r--r--Source/Core/VideoCommon/NetPlayGolfUI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/NetPlayGolfUI.cpp b/Source/Core/VideoCommon/NetPlayGolfUI.cpp
index 3a831b1cf1..fe67f9a63f 100644
--- a/Source/Core/VideoCommon/NetPlayGolfUI.cpp
+++ b/Source/Core/VideoCommon/NetPlayGolfUI.cpp
@@ -16,10 +16,12 @@ constexpr float DEFAULT_WINDOW_HEIGHT = 45.0f;
std::unique_ptr<NetPlayGolfUI> g_netplay_golf_ui;
NetPlayGolfUI::NetPlayGolfUI(std::shared_ptr<NetPlay::NetPlayClient> netplay_client)
+ : m_netplay_client{netplay_client}
{
- m_netplay_client = netplay_client;
}
+NetPlayGolfUI::~NetPlayGolfUI() = default;
+
void NetPlayGolfUI::Display()
{
auto client = m_netplay_client.lock();