refactor: replace NULL with nullptr across C++ codebase

Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
MatthewBeshay
2026-03-30 16:25:52 +11:00
parent a330ecdcbb
commit dfb0e3b03e
752 changed files with 5396 additions and 5396 deletions

View File

@@ -27,8 +27,8 @@ PlayerInfoPacket::PlayerInfoPacket(std::uint8_t networkSmallId,
PlayerInfoPacket::PlayerInfoPacket(std::shared_ptr<ServerPlayer> player) {
m_networkSmallId = 0;
if (player->connection != NULL &&
player->connection->getNetworkPlayer() != NULL)
if (player->connection != nullptr &&
player->connection->getNetworkPlayer() != nullptr)
m_networkSmallId = player->connection->getNetworkPlayer()->GetSmallId();
m_playerColourIndex = player->getPlayerIndex();
m_playerPrivileges = player->getAllPlayerGamePrivileges();