From c632be49e2356e12e108cfe9ccc5fde107d5557c Mon Sep 17 00:00:00 2001 From: John <63141077+AconiteX@users.noreply.github.com> Date: Tue, 28 Sep 2021 00:23:23 -0400 Subject: [PATCH] "err, fixed crash?" -Elour --- src/stationapi/Node.hpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/stationapi/Node.hpp b/src/stationapi/Node.hpp index 6ce98a3..51ac38d 100755 --- a/src/stationapi/Node.hpp +++ b/src/stationapi/Node.hpp @@ -34,14 +34,17 @@ public: void Tick() { udpManager_->GiveTime(); - - auto remove_iter - = std::remove_if(std::begin(clients_), std::end(clients_), [](auto& client) { - return client->GetConnection()->GetStatus() == UdpConnection::cStatusDisconnected; - }); - - if (remove_iter != std::end(clients_)) - clients_.erase(remove_iter); + + // ?????? + // not sure what this is or why its here but no bueno + // + //auto remove_iter + // = std::remove_if(std::begin(clients_), std::end(clients_), [](auto& client) { + // return client->GetConnection()->GetStatus() == UdpConnection::cStatusDisconnected; + // }); + // + //if (remove_iter != std::end(clients_)) + // clients_.erase(remove_iter); OnTick(); }