mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Don't make sTo strings static references
This commit is contained in:
parent
702868255a
commit
664c630ac0
@ -147,7 +147,7 @@ namespace MWGui
|
|||||||
|
|
||||||
mDurationValue->setCaption("1");
|
mDurationValue->setCaption("1");
|
||||||
mMagnitudeMinValue->setCaption("1");
|
mMagnitudeMinValue->setCaption("1");
|
||||||
static const std::string &to = MWBase::Environment::get().getWindowManager()->getGameSettingString("sTo", "-");
|
const std::string to = MWBase::Environment::get().getWindowManager()->getGameSettingString("sTo", "-");
|
||||||
|
|
||||||
mMagnitudeMaxValue->setCaption(to + " 1");
|
mMagnitudeMaxValue->setCaption(to + " 1");
|
||||||
mAreaValue->setCaption("0");
|
mAreaValue->setCaption("0");
|
||||||
@ -314,7 +314,7 @@ namespace MWGui
|
|||||||
}
|
}
|
||||||
|
|
||||||
mEffect.mMagnMax = pos+1;
|
mEffect.mMagnMax = pos+1;
|
||||||
static const std::string &to = MWBase::Environment::get().getWindowManager()->getGameSettingString("sTo", "-");
|
const std::string to = MWBase::Environment::get().getWindowManager()->getGameSettingString("sTo", "-");
|
||||||
|
|
||||||
mMagnitudeMaxValue->setCaption(to + " " + MyGUI::utility::toString(pos+1));
|
mMagnitudeMaxValue->setCaption(to + " " + MyGUI::utility::toString(pos+1));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user