mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 16:37:45 +00:00
Zone server actually works again
This commit is contained in:
parent
1e89498d5f
commit
5a1830c59b
1 changed files with 2 additions and 1 deletions
|
@ -211,6 +211,7 @@ protected:
|
||||||
|
|
||||||
// The IPC type itself.
|
// The IPC type itself.
|
||||||
m_ipcHdr.type = static_cast< ServerZoneIpcType >( m_data._ServerIpcType );
|
m_ipcHdr.type = static_cast< ServerZoneIpcType >( m_data._ServerIpcType );
|
||||||
|
m_segHdr.size = sizeof( T ) + sizeof( FFXIVARR_IPC_HEADER ) + sizeof( FFXIVARR_PACKET_SEGMENT_HEADER );
|
||||||
};
|
};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -225,9 +226,9 @@ class FFXIVRawPacket : public FFXIVPacketBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FFXIVRawPacket( uint16_t type, uint32_t size, uint32_t sourceActorId, uint32_t targetActorId ) :
|
FFXIVRawPacket( uint16_t type, uint32_t size, uint32_t sourceActorId, uint32_t targetActorId ) :
|
||||||
|
m_data( std::vector< uint8_t >( size - sizeof( FFXIVARR_PACKET_SEGMENT_HEADER ) ) ),
|
||||||
FFXIVPacketBase( type, sourceActorId, targetActorId )
|
FFXIVPacketBase( type, sourceActorId, targetActorId )
|
||||||
{
|
{
|
||||||
m_data.resize( size - sizeof( FFXIVARR_PACKET_SEGMENT_HEADER ) );
|
|
||||||
initialize();
|
initialize();
|
||||||
m_segHdr.size = size;
|
m_segHdr.size = size;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue