mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Merge pull request #2136 from akortunov/warnfix
Fix "-Wstring-plus-int" warnings
This commit is contained in:
commit
75c5b9de00
@ -78,7 +78,7 @@ void CSMTools::Search::searchRecordStateCell (const CSMWorld::IdTableBase *model
|
||||
std::vector<std::string> states =
|
||||
CSMWorld::Columns::getEnums (CSMWorld::Columns::ColumnId_Modification);
|
||||
|
||||
const std::string hint = "r: " + model->getColumnId (index.column());
|
||||
const std::string hint = "r: " + std::to_string(model->getColumnId(index.column()));
|
||||
messages.add (id, states.at(data), hint);
|
||||
}
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ void MWMechanics::Alchemy::updateEffects()
|
||||
|
||||
if (magicEffect->mData.mBaseCost<=0)
|
||||
{
|
||||
const std::string os = "invalid base cost for magic effect " + iter->mId;
|
||||
const std::string os = "invalid base cost for magic effect " + std::to_string(iter->mId);
|
||||
throw std::runtime_error (os);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user