NULL to nullptr

This commit is contained in:
GabsPuNs
2026-03-20 23:51:37 -04:00
parent cc6403cf9a
commit 4b4b20a84b
79 changed files with 4272 additions and 4274 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);
}