mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 06:47:45 +00:00
Merge branch 'develop' of https://github.com/SapphireMordred/Sapphire into develop
This commit is contained in:
commit
b9a78b72fd
1 changed files with 4 additions and 1 deletions
|
@ -313,7 +313,10 @@ bool Core::Entity::Player::loadSearchInfo()
|
|||
|
||||
m_searchSelectClass = res->getUInt8( 1 );
|
||||
m_searchSelectRegion = res->getUInt8( 2 );
|
||||
sprintf( m_searchMessage, res->getString( 3 ).c_str() );
|
||||
|
||||
// todo: internally use an std::string instead of a char[]
|
||||
auto searchMessage = res->getString( 3 );
|
||||
std::copy( searchMessage.begin(), searchMessage.end(), m_searchMessage );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue