mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 16:49:54 +00:00
Update referencecheck.cpp
MSVC does not allow for the usage of 'and' or 'or' literals
This commit is contained in:
parent
74232b90fc
commit
a61019dfa8
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ void CSMTools::ReferenceCheckStage::perform(int stage, CSMDoc::Messages &message
|
||||||
messages.push_back(std::make_pair(id, " is referencing object from non existing cell " + cellRef.mCell));
|
messages.push_back(std::make_pair(id, " is referencing object from non existing cell " + cellRef.mCell));
|
||||||
|
|
||||||
// If object have owner, check if that owner reference is valid
|
// If object have owner, check if that owner reference is valid
|
||||||
if (!cellRef.mOwner.empty() and mReferencables.searchId(cellRef.mOwner) == -1)
|
if (!cellRef.mOwner.empty() && mReferencables.searchId(cellRef.mOwner) == -1)
|
||||||
messages.push_back(std::make_pair(id, " has non existing owner " + cellRef.mOwner));
|
messages.push_back(std::make_pair(id, " has non existing owner " + cellRef.mOwner));
|
||||||
|
|
||||||
// If object have creature soul trapped, check if that creature reference is valid
|
// If object have creature soul trapped, check if that creature reference is valid
|
||||||
|
@ -107,4 +107,4 @@ void CSMTools::ReferenceCheckStage::perform(int stage, CSMDoc::Messages &message
|
||||||
int CSMTools::ReferenceCheckStage::setup()
|
int CSMTools::ReferenceCheckStage::setup()
|
||||||
{
|
{
|
||||||
return mReferences.getSize();
|
return mReferences.getSize();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue