mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-17 19:20:49 +00:00
Merge pull request #982 from MiroslavR/fix-invisibility-purge
Fix incorrect purging of constant-effect invisibility
This commit is contained in:
commit
1b3cde9b8d
@ -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…
x
Reference in New Issue
Block a user