Fix being able to steal undetected just after invisibility breaks

This commit is contained in:
scrawl 2014-06-17 21:27:41 +02:00
parent 80f66e2157
commit 56bc5a9d39

View file

@ -2344,6 +2344,9 @@ namespace MWWorld
actor.getClass().getCreatureStats(actor).getActiveSpells().purgeEffect(ESM::MagicEffect::Invisibility);
if (actor.getClass().hasInventoryStore(actor))
actor.getClass().getInventoryStore(actor).purgeEffect(ESM::MagicEffect::Invisibility);
// Normally updated once per frame, but here it is kinda important to do it right away.
MWBase::Environment::get().getMechanicsManager()->updateMagicEffects(actor);
}
bool World::isDark() const