fixed some columns

actorid
Marc Zinnschlag 12 years ago
parent 51fbb0f3f4
commit 7aee1da5c6

@ -257,7 +257,7 @@ namespace CSMWorld
int mIndex;
UseValueColumn (int index)
: Column<ESXRecordT> (Columns::ColumnId_UseValue1 + index - 1, ColumnBase::Display_Float),
: Column<ESXRecordT> (Columns::ColumnId_UseValue1 + index, ColumnBase::Display_Float),
mIndex (index)
{}
@ -339,7 +339,7 @@ namespace CSMWorld
int mIndex;
AttributesColumn (int index)
: Column<ESXRecordT> (Columns::ColumnId_Attribute1 + index - 1, ColumnBase::Display_Attribute),
: Column<ESXRecordT> (Columns::ColumnId_Attribute1 + index, ColumnBase::Display_Attribute),
mIndex (index)
{}
@ -372,7 +372,7 @@ namespace CSMWorld
SkillsColumn (int index, bool typePrefix = false, bool major = false)
: Column<ESXRecordT> ((typePrefix ? (
major ? Columns::ColumnId_MajorSkill1 : Columns::ColumnId_MinorSkill1) :
Columns::ColumnId_Skill1) + index - 1, ColumnBase::Display_String),
Columns::ColumnId_Skill1) + index, ColumnBase::Display_String),
mIndex (index), mMajor (major)
{}

@ -166,10 +166,11 @@ namespace CSMWorld
{ ColumnId_MinorSkill5, "Minor Skill 5" },
{ ColumnId_Skill1, "Skill 1" },
{ ColumnId_Skill1, "Skill 2" },
{ ColumnId_Skill1, "Skill 3" },
{ ColumnId_Skill1, "Skill 4" },
{ ColumnId_Skill1, "Skill 5" },
{ ColumnId_Skill2, "Skill 2" },
{ ColumnId_Skill3, "Skill 3" },
{ ColumnId_Skill4, "Skill 4" },
{ ColumnId_Skill5, "Skill 5" },
{ ColumnId_Skill6, "Skill 6" },
{ -1, 0 } // end marker
};

@ -171,7 +171,8 @@ namespace CSMWorld
ColumnId_Skill2 = 0x50001,
ColumnId_Skill3 = 0x50002,
ColumnId_Skill4 = 0x50003,
ColumnId_Skill5 = 0x50004
ColumnId_Skill5 = 0x50004,
ColumnId_Skill6 = 0x50005
};
std::string getName (ColumnId column);

Loading…
Cancel
Save