mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-17 16:58:09 +00:00
refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user