@ -306,3 +306,8 @@ endif()
# Make the variable accessible for other subdirectories
set(COMPONENT_FILES ${COMPONENT_FILES} PARENT_SCOPE)
pvs_studio_add_target(TARGET components.analyze ALL
OUTPUT FORMAT errorfile
ANALYZE components
LOG target_components.err)
@ -13,6 +13,8 @@ using namespace std;
PacketMasterAnnounce::PacketMasterAnnounce(RakNet::RakPeerInterface *peer) : BasePacket(peer)
{
server = nullptr;
func = 0;
packetID = ID_MASTER_ANNOUNCE;
orderChannel = CHANNEL_MASTER;
reliability = RELIABLE_ORDERED_WITH_ACK_RECEIPT;
@ -15,6 +15,7 @@ using namespace RakNet;
PacketMasterQuery::PacketMasterQuery(RakNet::RakPeerInterface *peer) : BasePacket(peer)
servers = nullptr;
packetID = ID_MASTER_QUERY;
@ -12,6 +12,7 @@ using namespace RakNet;
PacketMasterUpdate::PacketMasterUpdate(RakNet::RakPeerInterface *peer) : BasePacket(peer)
packetID = ID_MASTER_UPDATE;
@ -7,6 +7,7 @@ using namespace mwmp;
ActorPacket::ActorPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
actorList = nullptr;
packetID = 0;
priority = HIGH_PRIORITY;
reliability = RELIABLE_ORDERED;
ObjectPacket::ObjectPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
objectList = nullptr;
hasCellData = false;
@ -4,6 +4,7 @@
mwmp::PacketPreInit::PacketPreInit(RakNet::RakPeerInterface *peer) : BasePacket(peer)
checksums = nullptr;
packetID = ID_GAME_PREINIT;
}
PlayerPacket::PlayerPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
player = nullptr;
WorldstatePacket::WorldstatePacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
worldstate = nullptr;