diff --git a/apps/openmw/mwmechanics/spellcasting.cpp b/apps/openmw/mwmechanics/spellcasting.cpp index 19527076b..7778b8693 100644 --- a/apps/openmw/mwmechanics/spellcasting.cpp +++ b/apps/openmw/mwmechanics/spellcasting.cpp @@ -393,7 +393,7 @@ namespace MWMechanics if (!world->isWaterWalkingCastableOnTarget(target)) { - if (caster == getPlayer()) + if (castByPlayer) MWBase::Environment::get().getWindowManager()->messageBox ("#{sMagicInvalidEffect}"); continue; }