forked from mirror/openmw-tes3mp
Fix InventoryStore::purgeEffect being reverted by the next recalculation of mMagicEffects
This commit is contained in:
parent
528de956da
commit
72d2daae90
1 changed files with 5 additions and 1 deletions
|
@ -722,7 +722,11 @@ void MWWorld::InventoryStore::rechargeItems(float duration)
|
|||
|
||||
void MWWorld::InventoryStore::purgeEffect(short effectId)
|
||||
{
|
||||
mMagicEffects.remove(MWMechanics::EffectKey(effectId));
|
||||
for (TSlots::const_iterator it = mSlots.begin(); it != mSlots.end(); ++it)
|
||||
{
|
||||
if (*it != end())
|
||||
purgeEffect(effectId, (*it)->getCellRef().getRefId());
|
||||
}
|
||||
}
|
||||
|
||||
void MWWorld::InventoryStore::purgeEffect(short effectId, const std::string &sourceId)
|
||||
|
|
Loading…
Reference in a new issue