diff --git a/ugc/api.cpp b/ugc/api.cpp index 1243fbe026..9162c974e6 100644 --- a/ugc/api.cpp +++ b/ugc/api.cpp @@ -26,7 +26,7 @@ void Api::SetUGCUpdate(FeatureID const & id, UGCUpdate const & ugc) void Api::GetUGCToSend(UGCJsonToSendCallback const & fn) { - m_thread.Push([&fn, this] { GetUGCToSendImpl(fn); }); + m_thread.Push([fn, this] { GetUGCToSendImpl(fn); }); } void Api::SendingCompleted()