mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 14:36:39 +00:00
Fix uninitialized mSkill/mAttribute for spellmaker spells
This commit is contained in:
parent
c73217627e
commit
aa4b2d9504
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
#include "../mwworld/player.hpp"
|
#include "../mwworld/player.hpp"
|
||||||
|
|
||||||
#include "../mwmechanics/spellsuccess.hpp"
|
#include "../mwmechanics/spellcasting.hpp"
|
||||||
|
|
||||||
#include "tooltips.hpp"
|
#include "tooltips.hpp"
|
||||||
#include "class.hpp"
|
#include "class.hpp"
|
||||||
|
@ -89,6 +89,8 @@ namespace MWGui
|
||||||
mEffect.mMagnMax = 1;
|
mEffect.mMagnMax = 1;
|
||||||
mEffect.mDuration = 1;
|
mEffect.mDuration = 1;
|
||||||
mEffect.mArea = 0;
|
mEffect.mArea = 0;
|
||||||
|
mEffect.mSkill = -1;
|
||||||
|
mEffect.mAttribute = -1;
|
||||||
eventEffectAdded(mEffect);
|
eventEffectAdded(mEffect);
|
||||||
|
|
||||||
onRangeButtonClicked(mRangeButton);
|
onRangeButtonClicked(mRangeButton);
|
||||||
|
|
Loading…
Reference in a new issue