diff --git a/Source/Core/UICommon/NetPlayIndex.cpp b/Source/Core/UICommon/NetPlayIndex.cpp index a55121c32b..f7cbd3f557 100644 --- a/Source/Core/UICommon/NetPlayIndex.cpp +++ b/Source/Core/UICommon/NetPlayIndex.cpp @@ -333,7 +333,7 @@ bool NetPlayIndex::HasActiveSession() const return !m_secret.empty(); } -void NetPlayIndex::SetErrorCallback(std::function function) +void NetPlayIndex::SetErrorCallback(std::function callback) { - m_error_callback = function; + m_error_callback = std::move(callback); }