1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Spellcreation window: set captions to "0" if no effects are added (Fixes #1778)

This commit is contained in:
MiroslavR 2014-08-12 18:53:03 +02:00
parent 40a33eb9f0
commit 4f67f5d26f

View file

@ -387,6 +387,14 @@ namespace MWGui
void SpellCreationDialog::notifyEffectsChanged ()
{
if (mEffects.empty())
{
mMagickaCost->setCaption("0");
mPriceLabel->setCaption("0");
mSuccessChance->setCaption("0");
return;
}
float y = 0;
const MWWorld::ESMStore &store =