strat: compat with gcc 11

This commit is contained in:
Michael Scire committed 2021-04-26 20:06:28 -07:00
1 parent 4f16106702
commit 21f3d29df7
11 files changed
+26 -21

No files matched your search

@@ -219,10 +219,11 @@ namespace ams::htcs::client {
sf::SharedPointer<tma::ISocket> socket = nullptr;
/* Find the socket. */
s32 index;
{
std::scoped_lock lk(m_mutex);
if (auto index = this->Find(id, std::addressof(error_code)); index >= 0) {
if (index = this->Find(id, std::addressof(error_code)); index >= 0) {
/* Get the socket's object. */
VirtualSocket *virt_socket = m_socket_list + index;
socket = virt_socket->m_socket;