1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

additional check for using the same attribute twice in a class

This commit is contained in:
Marc Zinnschlag 2013-04-04 10:31:10 +02:00
parent fea44c05d4
commit 06533b8d71

View File

@ -42,6 +42,15 @@ void CSMTools::ClassCheckStage::perform (int stage, std::vector<std::string>& me
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
std::map<int, int> skills; // ID, number of occurrences