Ivan Savenko пре 1 година
родитељ
комит
320469d773

+ 1 - 1
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;
 

+ 1 - 1
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);

+ 2 - 2
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: