mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-05-27 01:04:46 +00:00
Some code updates
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user