mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-24 12:09:43 +00:00
Use castByPlayer bool
This commit is contained in:
parent
a6216d883f
commit
6c3cad238b
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ namespace MWMechanics
|
||||||
|
|
||||||
if (!world->isWaterWalkingCastableOnTarget(target))
|
if (!world->isWaterWalkingCastableOnTarget(target))
|
||||||
{
|
{
|
||||||
if (caster == getPlayer())
|
if (castByPlayer)
|
||||||
MWBase::Environment::get().getWindowManager()->messageBox ("#{sMagicInvalidEffect}");
|
MWBase::Environment::get().getWindowManager()->messageBox ("#{sMagicInvalidEffect}");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue