Some code updates

This commit is contained in:
GabsPuNs
2026-04-09 00:57:05 -04:00
parent fb12bc0860
commit abd2d848cf
59 changed files with 241 additions and 257 deletions

View File

@@ -54,7 +54,7 @@ void ServerConnection::stop()
for (unsigned int i = 0; i < pendingSnapshot.size(); i++)
{
shared_ptr<PendingConnection> uc = pendingSnapshot[i];
if (uc != NULL && !uc->done)
if (uc != nullptr && !uc->done)
{
uc->disconnect(DisconnectPacket::eDisconnect_Closed);
}
@@ -65,7 +65,7 @@ void ServerConnection::stop()
for (unsigned int i = 0; i < playerSnapshot.size(); i++)
{
shared_ptr<PlayerConnection> player = playerSnapshot[i];
if (player != NULL && !player->done)
if (player != nullptr && !player->done)
{
player->disconnect(DisconnectPacket::eDisconnect_Quitting);
}