1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-02 00:47:45 +00:00

fix msvc builds and cleanup some warnings

This commit is contained in:
NotAdam 2018-12-26 13:37:13 +11:00
parent da8b86b1a0
commit 0aba5c8d2d
4 changed files with 5 additions and 2 deletions

View file

@ -169,7 +169,7 @@ namespace Sapphire::Network::Packets
// Set the values of static fields.
// The size must be the sum of the segment header and the content
m_segHdr.size = sizeof( FFXIVARR_PACKET_SEGMENT_HEADER ) + getContentSize();
m_segHdr.size = static_cast< uint32_t >( sizeof( FFXIVARR_PACKET_SEGMENT_HEADER ) + getContentSize() );
m_segHdr.type = getSegmentType();
}

View file

@ -24,7 +24,7 @@ void Sapphire::Network::Packets::PacketContainer::addPacket( Sapphire::Network::
{
m_entryList.push_back( entry );
m_ipcHdr.size += entry->getSize();
m_ipcHdr.size += static_cast< uint32_t >( entry->getSize() );
m_ipcHdr.count++;
}

View file

@ -5,6 +5,7 @@
#include "Territory/HousingZone.h"
#include <set>
#include <unordered_map>
#include <array>
namespace Sapphire::Data
{

View file

@ -4,6 +4,8 @@
#include "Zone.h"
#include "Forwards.h"
#include <array>
namespace Sapphire
{
enum class LandPurchaseResult