1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

Mark setAttackingOrSpell as const

This commit is contained in:
Alexei Kotov 2022-06-12 03:02:23 +03:00
parent 47f574e14b
commit c2e637d661
2 changed files with 2 additions and 3 deletions

View File

@ -2707,7 +2707,7 @@ bool CharacterController::isRunning() const
mMovementState == CharState_SwimRunRight; mMovementState == CharState_SwimRunRight;
} }
void CharacterController::setAttackingOrSpell(bool attackingOrSpell) void CharacterController::setAttackingOrSpell(bool attackingOrSpell) const
{ {
mPtr.getClass().getCreatureStats(mPtr).setAttackingOrSpell(attackingOrSpell); mPtr.getClass().getCreatureStats(mPtr).setAttackingOrSpell(attackingOrSpell);
} }

View File

@ -234,8 +234,7 @@ class CharacterController : public MWRender::Animation::TextKeyListener
std::string getWeaponAnimation(int weaponType) const; std::string getWeaponAnimation(int weaponType) const;
bool getAttackingOrSpell() const; bool getAttackingOrSpell() const;
void setAttackingOrSpell(bool attackingOrSpell); void setAttackingOrSpell(bool attackingOrSpell) const;
public: public:
CharacterController(const MWWorld::Ptr &ptr, MWRender::Animation *anim); CharacterController(const MWWorld::Ptr &ptr, MWRender::Animation *anim);