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

static is a keyword. renamed static to staticElement

This commit is contained in:
Marek Kochanowicz 2014-01-05 17:31:54 +01:00
parent 80d424591f
commit 4338706307
2 changed files with 7 additions and 7 deletions

View File

@ -945,12 +945,12 @@ void CSMTools::ReferenceableCheckStage::staticCheck(
return;
}
const ESM::Static& static = (dynamic_cast<const CSMWorld::Record<ESM::Static>& >(baseRecord)).get();
CSMWorld::UniversalId id(CSMWorld::UniversalId::Type_Static, static.mId);
const ESM::Static& staticElement = (dynamic_cast<const CSMWorld::Record<ESM::Static>& >(baseRecord)).get();
CSMWorld::UniversalId id(CSMWorld::UniversalId::Type_Static, staticElement.mId);
if (static.mModel.empty())
if (staticElement.mModel.empty())
{
messages.push_back(id.toString() + "|" + static.mId + " has no model");
messages.push_back(id.toString() + "|" + staticElement.mId + " has no model");
}
}
@ -1074,12 +1074,12 @@ template<typename LIST> void CSMTools::ReferenceableCheckStage::listCheck(
{
if (mReferencables.searchId(someList.mList[i].mId).first == -1)
{
messages.push_back(someid + "|" + someList.mId + " contains item without referencable");
messages.push_back(someID + "|" + someList.mId + " contains item without referencable");
}
if (someList.mList[i].mLevel < 1)
{
messages.push_back(someid + "|" + someList.mId + " contains item with non-positive level");
messages.push_back(someID + "|" + someList.mId + " contains item with non-positive level");
}
}
}

View File

@ -43,7 +43,7 @@ namespace CSMTools
template<typename ITEM> void inventoryItemCheck(const ITEM& someitem, std::vector<std::string>& messages, const std::string& someid); //for non-enchantable items.
template<typename TOOL> void toolCheck(const TOOL& sometool, std::vector<std::string>& messages, const std::string& someid, bool canbebroken); //for tools with uses.
template<typename TOOL> void toolCheck(const TOOL& sometool, std::vector<std::string>& messages, const std::string& someid); //for tools without uses.
template<typename LIST> void listCheck(const LIST& some, std::vector< std::string >& messages, const std::string& someid);
template<typename LIST> void listCheck(const LIST& somelist, std::vector< std::string >& messages, const std::string& Som);
const CSMWorld::RefIdData& mReferencables;
const CSMWorld::IdCollection<ESM::Race>& mRaces;