mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-26 06:40:22 +00:00
don't discard purged effects
This commit is contained in:
parent
5c7ecb865c
commit
fb28d27d08
@ -434,8 +434,9 @@ namespace MWMechanics
|
||||
const auto& baseSpells = mSpellList->getSpells();
|
||||
for (const auto& it : mSpells)
|
||||
{
|
||||
//Don't save spells stored in the base record
|
||||
if(std::find(baseSpells.begin(), baseSpells.end(), it.first->mId) == baseSpells.end())
|
||||
// Don't save spells and powers stored in the base record
|
||||
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;
|
||||
params.mEffectRands = it.second.mEffectRands;
|
||||
|
Loading…
x
Reference in New Issue
Block a user