mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 22:45:33 +00:00
static is a keyword. renamed static to staticElement
This commit is contained in:
parent
80d424591f
commit
4338706307
2 changed files with 7 additions and 7 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue