1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-29 00:06:41 +00:00

Fix uninitialized mSkill/mAttribute for spellmaker spells

This commit is contained in:
scrawl 2013-11-16 01:19:39 +01:00
parent c73217627e
commit aa4b2d9504

View file

@ -9,7 +9,7 @@
#include "../mwworld/player.hpp"
#include "../mwmechanics/spellsuccess.hpp"
#include "../mwmechanics/spellcasting.hpp"
#include "tooltips.hpp"
#include "class.hpp"
@ -89,6 +89,8 @@ namespace MWGui
mEffect.mMagnMax = 1;
mEffect.mDuration = 1;
mEffect.mArea = 0;
mEffect.mSkill = -1;
mEffect.mAttribute = -1;
eventEffectAdded(mEffect);
onRangeButtonClicked(mRangeButton);