mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
Register copied Spells with SpellList
This commit is contained in:
parent
3736cd45cd
commit
c2580d60e9
2 changed files with 12 additions and 0 deletions
|
@ -24,6 +24,14 @@ namespace MWMechanics
|
|||
{
|
||||
}
|
||||
|
||||
Spells::Spells(const Spells& spells) : mSpellList(spells.mSpellList), mSpells(spells.mSpells),
|
||||
mSelectedSpell(spells.mSelectedSpell), mUsedPowers(spells.mUsedPowers),
|
||||
mSpellsChanged(spells.mSpellsChanged), mEffects(spells.mEffects), mSourcedEffects(spells.mSourcedEffects)
|
||||
{
|
||||
if(mSpellList)
|
||||
mSpellList->addListener(this);
|
||||
}
|
||||
|
||||
std::map<const ESM::Spell*, SpellParams>::const_iterator Spells::begin() const
|
||||
{
|
||||
return mSpells.begin();
|
||||
|
|
|
@ -57,6 +57,10 @@ namespace MWMechanics
|
|||
|
||||
Spells();
|
||||
|
||||
Spells(const Spells&);
|
||||
|
||||
Spells(const Spells&&) = delete;
|
||||
|
||||
~Spells();
|
||||
|
||||
static bool hasCorprusEffect(const ESM::Spell *spell);
|
||||
|
|
Loading…
Reference in a new issue