1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-02 01:15:32 +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; return;
} }
const ESM::Static& static = (dynamic_cast<const CSMWorld::Record<ESM::Static>& >(baseRecord)).get(); const ESM::Static& staticElement = (dynamic_cast<const CSMWorld::Record<ESM::Static>& >(baseRecord)).get();
CSMWorld::UniversalId id(CSMWorld::UniversalId::Type_Static, static.mId); 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) 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) 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 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, 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 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::RefIdData& mReferencables;
const CSMWorld::IdCollection<ESM::Race>& mRaces; const CSMWorld::IdCollection<ESM::Race>& mRaces;