mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-10 02:59:47 -03:00
Pad character data.
May fix the 99% issue?
This commit is contained in:
@@ -53,6 +53,11 @@ sptr_generic_response RequestGetNetCharacterData_RTA::SendCharacterData( sptr_so
|
|||||||
|
|
||||||
const int32_t isFinalChunk = ( position + chunk_size >= data_size );
|
const int32_t isFinalChunk = ( position + chunk_size >= data_size );
|
||||||
|
|
||||||
|
if( isFinalChunk && chunk_data.size() < 1024 )
|
||||||
|
{
|
||||||
|
chunk_data.resize( 1024, 0 );
|
||||||
|
}
|
||||||
|
|
||||||
auto response = std::make_shared<ResultGetNetCharacterData_RTA>( this, SUCCESS, std::move( chunk_data ), isFinalChunk );
|
auto response = std::make_shared<ResultGetNetCharacterData_RTA>( this, SUCCESS, std::move( chunk_data ), isFinalChunk );
|
||||||
|
|
||||||
if( isFinalChunk )
|
if( isFinalChunk )
|
||||||
|
|||||||
Reference in New Issue
Block a user