mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 11:07:45 +00:00
update class & exp array using const defined in common
This commit is contained in:
parent
b76e68f101
commit
44d61fc8b3
2 changed files with 3 additions and 3 deletions
|
@ -1136,8 +1136,8 @@ namespace Sapphire::Entity
|
|||
uint8_t m_discovery[445];
|
||||
uint32_t m_playTime;
|
||||
|
||||
uint16_t m_classArray[28];
|
||||
uint32_t m_expArray[28];
|
||||
uint16_t m_classArray[ Common::CLASSJOB_SLOTS ];
|
||||
uint32_t m_expArray[ Common::CLASSJOB_SLOTS ];
|
||||
uint8_t m_aetheryte[21];
|
||||
uint8_t m_unlocks[64];
|
||||
uint8_t m_orchestrion[40];
|
||||
|
|
|
@ -55,7 +55,7 @@ namespace Sapphire::Network::Packets::Server
|
|||
//memcpy( m_data.aetheryte, player.getAetheryteArray(), sizeof( m_data.aetheryte ) );
|
||||
|
||||
// Set the class levels and exp.
|
||||
for( uint8_t i = 0; i < 25; i++ )
|
||||
for( uint8_t i = 0; i < Common::CLASSJOB_SLOTS; i++ )
|
||||
{
|
||||
m_data.levels[ i ] = player.getClassArray()[ i ];
|
||||
m_data.exp[ i ] = player.getExpArray()[ i ];
|
||||
|
|
Loading…
Add table
Reference in a new issue