1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-24 23:36:50 +00:00

Shameful bug fixed.

This commit is contained in:
Marek Kochanowicz 2014-01-10 09:42:36 +01:00
parent b85fe2becf
commit b98cdabe89

View file

@ -206,6 +206,7 @@ void CSMTools::ReferenceableCheckStage::perform(int stage, std::vector< std::str
staticCheck(stage, mReferencables.getStatics(), messages); staticCheck(stage, mReferencables.getStatics(), messages);
return; return;
} }
// if we come that far, we are about to perform our last, final check. // if we come that far, we are about to perform our last, final check.
finalCheck(messages); finalCheck(messages);
return; return;
@ -580,8 +581,6 @@ void CSMTools::ReferenceableCheckStage::lightCheck(
} }
if (light.mData.mFlags & ESM::Light::Carry) if (light.mData.mFlags & ESM::Light::Carry)
{
if (light.mIcon.empty()) //Needs to be checked with carrable flag
{ {
inventoryItemCheck<ESM::Light>(light, messages, id.toString()); inventoryItemCheck<ESM::Light>(light, messages, id.toString());
@ -590,7 +589,6 @@ void CSMTools::ReferenceableCheckStage::lightCheck(
messages.push_back(id.toString() + "|" + light.mId + " has zero duration"); messages.push_back(id.toString() + "|" + light.mId + " has zero duration");
} }
} }
}
} }
void CSMTools::ReferenceableCheckStage::lockpickCheck( void CSMTools::ReferenceableCheckStage::lockpickCheck(