1
Fork 0
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:
Mordred 2018-02-15 23:50:40 +01:00
commit b9a78b72fd

View file

@ -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;
}