mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Fix spell deletion not resetting the selected spell correctly
This commit is contained in:
parent
b3764c504a
commit
73f8161d1e
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ namespace MWGui
|
|||
MWMechanics::CreatureStats& stats = MWWorld::Class::get(player).getCreatureStats(player);
|
||||
MWMechanics::Spells& spells = stats.getSpells();
|
||||
|
||||
if (spells.getSelectedSpell() == mSpellToDelete)
|
||||
if (MWBase::Environment::get().getWindowManager()->getSelectedSpell() == mSpellToDelete)
|
||||
MWBase::Environment::get().getWindowManager()->unsetSelectedSpell();
|
||||
|
||||
spells.remove(mSpellToDelete);
|
||||
|
|
Loading…
Reference in a new issue