diff --git a/client/adventureMap/AdventureMapInterface.cpp b/client/adventureMap/AdventureMapInterface.cpp index 863e48ba8..fc2d2a61c 100644 --- a/client/adventureMap/AdventureMapInterface.cpp +++ b/client/adventureMap/AdventureMapInterface.cpp @@ -925,7 +925,7 @@ void AdventureMapInterface::onScreenResize() activate(); } -bool AdventureMapInterface::isValidAdventureSpellTarget(int3 targetPosition) +bool AdventureMapInterface::isValidAdventureSpellTarget(int3 targetPosition) const { spells::detail::ProblemImpl problem; diff --git a/client/adventureMap/AdventureMapInterface.h b/client/adventureMap/AdventureMapInterface.h index 7f7363e80..cd63e5b24 100644 --- a/client/adventureMap/AdventureMapInterface.h +++ b/client/adventureMap/AdventureMapInterface.h @@ -93,7 +93,7 @@ private: void performSpellcasting(const int3 & castTarget); /// performs clientside validation of valid targets for adventure spells - bool isValidAdventureSpellTarget(int3 targetPosition); + bool isValidAdventureSpellTarget(int3 targetPosition) const; /// dim interface if some windows opened void dim(Canvas & to); diff --git a/lib/spells/AdventureSpellMechanics.h b/lib/spells/AdventureSpellMechanics.h index 4b745d66d..02f8c01aa 100644 --- a/lib/spells/AdventureSpellMechanics.h +++ b/lib/spells/AdventureSpellMechanics.h @@ -29,8 +29,8 @@ class AdventureSpellMechanics : public IAdventureSpellMechanics public: AdventureSpellMechanics(const CSpell * s); - bool canBeCast(spells::Problem & problem, const CGameInfoCallback * cb, const spells::Caster * caster) const override final; - bool canBeCastAt(spells::Problem & problem, const CGameInfoCallback * cb, const spells::Caster * caster, const int3 & pos) const override final; + bool canBeCast(spells::Problem & problem, const CGameInfoCallback * cb, const spells::Caster * caster) const final; + bool canBeCastAt(spells::Problem & problem, const CGameInfoCallback * cb, const spells::Caster * caster, const int3 & pos) const final; bool adventureCast(SpellCastEnvironment * env, const AdventureSpellCastParameters & parameters) const override final; protected: