mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:23:51 +00:00
Merge pull request #2136 from akortunov/warnfix
Fix "-Wstring-plus-int" warnings
This commit is contained in:
commit
75c5b9de00
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue