mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +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
@ -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));
|
||||
|
||||
// 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));
|
||||
|
||||
// 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()
|
||||
{
|
||||
return mReferences.getSize();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user