mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 12:23:51 +00:00
commit
32e7b78cb9
1 changed files with 3 additions and 2 deletions
|
@ -434,8 +434,9 @@ namespace MWMechanics
|
||||||
const auto& baseSpells = mSpellList->getSpells();
|
const auto& baseSpells = mSpellList->getSpells();
|
||||||
for (const auto& it : mSpells)
|
for (const auto& it : mSpells)
|
||||||
{
|
{
|
||||||
//Don't save spells stored in the base record
|
// Don't save spells and powers stored in the base record
|
||||||
if(std::find(baseSpells.begin(), baseSpells.end(), it.first->mId) == baseSpells.end())
|
if((it.first->mData.mType != ESM::Spell::ST_Spell && it.first->mData.mType != ESM::Spell::ST_Power) ||
|
||||||
|
std::find(baseSpells.begin(), baseSpells.end(), it.first->mId) == baseSpells.end())
|
||||||
{
|
{
|
||||||
ESM::SpellState::SpellParams params;
|
ESM::SpellState::SpellParams params;
|
||||||
params.mEffectRands = it.second.mEffectRands;
|
params.mEffectRands = it.second.mEffectRands;
|
||||||
|
|
Loading…
Reference in a new issue