mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-04-17 06:09:51 +00:00
Fixed lua crash caused by lion with optimizations
This commit is contained in:
committed by
Anonymous275
parent
f52308c439
commit
9b1bf071a8
@@ -113,7 +113,7 @@ void TTCPServer::Authentication(SOCKET TCPSock) {
|
||||
|
||||
debug("Name -> " + Client->GetName() + ", Guest -> " + std::to_string(Client->IsGuest()) + ", Roles -> " + Client->GetRoles());
|
||||
debug("There are " + std::to_string(mServer.ClientCount()) + " known clients");
|
||||
mServer.ForEachClient([&](std::weak_ptr<TClient> ClientPtr) -> bool {
|
||||
mServer.ForEachClient([&](const std::weak_ptr<TClient>& ClientPtr) -> bool {
|
||||
if (!ClientPtr.expired()) {
|
||||
auto Cl = ClientPtr.lock();
|
||||
info("Client Iteration: Name -> " + Client->GetName() + ", Guest -> " + std::to_string(Client->IsGuest()) + ", Roles -> " + Client->GetRoles());
|
||||
|
||||
Reference in New Issue
Block a user