1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 14:37:44 +00:00

fix compile warning

This commit is contained in:
Adam 2018-02-15 19:27:44 +11:00
parent 50f90d960b
commit 0d8a2aaf8c

View file

@ -313,7 +313,8 @@ bool Core::Entity::Player::loadSearchInfo()
m_searchSelectClass = res->getUInt8( 1 ); m_searchSelectClass = res->getUInt8( 1 );
m_searchSelectRegion = res->getUInt8( 2 ); m_searchSelectRegion = res->getUInt8( 2 );
sprintf( m_searchMessage, res->getString( 3 ).c_str() ); auto searchMessage = res->getString( 3 );
std::copy( searchMessage.begin(), searchMessage.end(), m_searchMessage );
return true; return true;
} }