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

Fix for setLevelForClass

This commit is contained in:
Mordred 2022-01-13 23:41:24 +01:00
parent d978197b3d
commit 0714a56e56

View file

@ -916,7 +916,7 @@ void Sapphire::Entity::Player::setLevel( uint8_t level )
void Sapphire::Entity::Player::setLevelForClass( uint8_t level, Common::ClassJob classjob )
{
auto& exdData = Common::Service< Data::ExdData >::ref();
uint8_t classJobIndex = exdData.getRow< Component::Excel::ClassJob >( static_cast< uint8_t >( getClass() ) )->data().WorkIndex;
uint8_t classJobIndex = exdData.getRow< Component::Excel::ClassJob >( static_cast< uint8_t >( classjob ) )->data().WorkIndex;
if( m_classArray[ classJobIndex ] == 0 )
insertDbClass( classJobIndex, level );