1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-05 15:45:33 +00:00

Missing change & changed comments to represent actual code

This commit is contained in:
Kamil Bar 2015-02-13 12:16:46 +01:00
parent 52a064afc3
commit 9628415e21

View file

@ -34,7 +34,7 @@ void CSMTools::ReferenceCheckStage::perform(int stage, CSMDoc::Messages &message
if (mReferencables.searchId(cellRef.mRefID) == -1) { if (mReferencables.searchId(cellRef.mRefID) == -1) {
messages.push_back(std::make_pair(id, " is referencing non existing object " + cellRef.mRefID)); messages.push_back(std::make_pair(id, " is referencing non existing object " + cellRef.mRefID));
} else { } else {
// Check if reference charge isn't negative if it's proper type // Check if reference charge is valid for it's proper referenced type
CSMWorld::RefIdData::LocalIndex localIndex = mDataSet.searchId(cellRef.mRefID); CSMWorld::RefIdData::LocalIndex localIndex = mDataSet.searchId(cellRef.mRefID);
if (localIndex.second == CSMWorld::UniversalId::Type_Armor || if (localIndex.second == CSMWorld::UniversalId::Type_Armor ||
localIndex.second == CSMWorld::UniversalId::Type_Weapon) { localIndex.second == CSMWorld::UniversalId::Type_Weapon) {
@ -48,7 +48,7 @@ void CSMTools::ReferenceCheckStage::perform(int stage, CSMDoc::Messages &message
localIndex.second == CSMWorld::UniversalId::Type_Repair) { localIndex.second == CSMWorld::UniversalId::Type_Repair) {
if (cellRef.mChargeInt < -1) { if (cellRef.mChargeInt < -1) {
std::string str = " has invalid charges "; std::string str = " has invalid charges ";
str += boost::lexical_cast<std::string>(cellRef.mChargeFloat); str += boost::lexical_cast<std::string>(cellRef.mChargeInt);
messages.push_back(std::make_pair(id, id.getId() + str)); messages.push_back(std::make_pair(id, id.getId() + str));
} }
} }