From 6c3cad238b0f1aee8c5dd68dda6eb0686cc87720 Mon Sep 17 00:00:00 2001 From: Allofich Date: Wed, 31 Aug 2016 17:14:16 +0900 Subject: [PATCH] Use castByPlayer bool --- apps/openmw/mwmechanics/spellcasting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }