1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 06:47:45 +00:00

fix crash on mobkills due to misuse of classjob index;

This commit is contained in:
Alice Ogeda 2025-01-02 23:56:59 -03:00
parent 73094fb85c
commit ee72f2e447
2 changed files with 7 additions and 5 deletions

View file

@ -302,18 +302,18 @@ namespace Excel
uint16_t LimitBreakAction[3];
uint16_t PvpLimitBreakAction[3];
uint8_t Kind;
uint8_t UIPriority;
uint8_t Unknown6;
uint8_t JobIndex;
uint8_t MainClass;
uint8_t Role;
uint8_t Town;
int8_t MonsterNote;
int8_t UIPriority;
int8_t StartingLevel;
uint8_t PartyBuff;
int8_t WorkIndex;
int8_t BattleClassIndex;
int8_t CraftingClassIndex;
int8_t Unknown7;
int8_t MonsterNote;
};
/* 63507 */

View file

@ -1597,9 +1597,11 @@ void Player::updateHuntingLog( uint16_t id )
if( !classJobInfo )
return;
auto currentClassId = classJobInfo->data().MainClass;
auto currentClassId = classJobInfo->data().MonsterNote;
if( currentClassId == -1 || currentClassId == 127 )
return;
auto& logEntry = m_huntingLogEntries[ currentClassId - 1 ];
auto& logEntry = m_huntingLogEntries[ currentClassId ];
bool logChanged = false;