forked from teamnwah/openmw-tes3coop
Spellcreation window: set captions to "0" if no effects are added (Fixes #1778)
This commit is contained in:
parent
40a33eb9f0
commit
4f67f5d26f
1 changed files with 8 additions and 0 deletions
|
@ -387,6 +387,14 @@ namespace MWGui
|
||||||
|
|
||||||
void SpellCreationDialog::notifyEffectsChanged ()
|
void SpellCreationDialog::notifyEffectsChanged ()
|
||||||
{
|
{
|
||||||
|
if (mEffects.empty())
|
||||||
|
{
|
||||||
|
mMagickaCost->setCaption("0");
|
||||||
|
mPriceLabel->setCaption("0");
|
||||||
|
mSuccessChance->setCaption("0");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
float y = 0;
|
float y = 0;
|
||||||
|
|
||||||
const MWWorld::ESMStore &store =
|
const MWWorld::ESMStore &store =
|
||||||
|
|
Loading…
Reference in a new issue