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:
parent
d978197b3d
commit
0714a56e56
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue