From 744667e163d5ae8898578a9584d76c0c4ed4b27f Mon Sep 17 00:00:00 2001 From: MiroslavR Date: Mon, 19 Sep 2016 00:05:50 +0200 Subject: [PATCH] Don't use base invisibility magnitude for setting alpha (Fixes #3555) --- apps/openmw/mwmechanics/character.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index fb1662a4a..d993b1301 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -2167,7 +2167,7 @@ void CharacterController::updateMagicEffects() if (!mPtr.getClass().isActor()) return; float alpha = 1.f; - if (mPtr.getClass().getCreatureStats(mPtr).getMagicEffects().get(ESM::MagicEffect::Invisibility).getMagnitude()) + if (mPtr.getClass().getCreatureStats(mPtr).getMagicEffects().get(ESM::MagicEffect::Invisibility).getModifier()) // Ignore base magnitude (see bug #3555). { if (mPtr == getPlayer()) alpha = 0.4f;