1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 21:40:15 +00:00

Update referencecheck.cpp

MSVC does not allow for the usage of 'and' or 'or' literals
This commit is contained in:
Alexander "Ace" Olofsson 2015-02-15 04:47:25 +01:00
parent 74232b90fc
commit a61019dfa8

View File

@ -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