mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
additional check for using the same attribute twice in a class
This commit is contained in:
parent
fea44c05d4
commit
06533b8d71
@ -42,6 +42,15 @@ void CSMTools::ClassCheckStage::perform (int stage, std::vector<std::string>& me
|
|||||||
messages.push_back (stream.str());
|
messages.push_back (stream.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (class_.mData.mAttribute[0]==class_.mData.mAttribute[1] && class_.mData.mAttribute[0]!=-1)
|
||||||
|
{
|
||||||
|
std::ostringstream stream;
|
||||||
|
|
||||||
|
stream << id.toString() << "|Class lists same attribute twice";
|
||||||
|
|
||||||
|
messages.push_back (stream.str());
|
||||||
|
}
|
||||||
|
|
||||||
// test for non-unique skill
|
// test for non-unique skill
|
||||||
std::map<int, int> skills; // ID, number of occurrences
|
std::map<int, int> skills; // ID, number of occurrences
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user