mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix: error in skill display (dedicated to tais, who once again saved VS)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6015 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1866,7 +1866,13 @@ void DisplayCharStats(INT32 iId, INT32 iSlot)
|
||||
fAddedTraitRegion[ubCnt] = TRUE;
|
||||
|
||||
// Assign the text
|
||||
AssignPersonnelSkillTraitHelpText( ubTempSkillArray[ubCnt], ((ubTempSkillArray[ubCnt] > NEWTRAIT_MERCSKILL_EXPERTOFFSET) ? TRUE : FALSE), Menptr[iId].ubProfile, ubCnt );
|
||||
BOOLEAN fExpert = (ubTempSkillArray[ubCnt] > NEWTRAIT_MERCSKILL_EXPERTOFFSET);
|
||||
|
||||
UINT8 traitnr = ubTempSkillArray[ubCnt];
|
||||
if ( fExpert )
|
||||
traitnr -= NEWTRAIT_MERCSKILL_EXPERTOFFSET;
|
||||
|
||||
AssignPersonnelSkillTraitHelpText( traitnr, fExpert, Menptr[iId].ubProfile, ubCnt );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user