mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
Fix appending int to string in an exception message
This commit is contained in:
parent
40b6b4afc5
commit
c020665cf2
@ -144,7 +144,11 @@ void MWMechanics::Alchemy::updateEffects()
|
||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::MagicEffect>().find (iter->mId);
|
||||
|
||||
if (magicEffect->mData.mBaseCost<=0)
|
||||
throw std::runtime_error ("invalid base cost for magic effect " + iter->mId);
|
||||
{
|
||||
std::ostringstream os;
|
||||
os << "invalid base cost for magic effect " << iter->mId;
|
||||
throw std::runtime_error (os.str());
|
||||
}
|
||||
|
||||
float fPotionT1MagMul =
|
||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find ("fPotionT1MagMult")->getFloat();
|
||||
|
Loading…
Reference in New Issue
Block a user