mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 14:11:32 +00:00
Avoid some unnecessary references
This commit is contained in:
parent
2c03fec4bb
commit
8f69c51b24
2 changed files with 4 additions and 4 deletions
|
@ -110,7 +110,7 @@ namespace MWMechanics
|
||||||
return mMagicEffects;
|
return mMagicEffects;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool &CreatureStats::getAttackingOrSpell() const
|
bool CreatureStats::getAttackingOrSpell() const
|
||||||
{
|
{
|
||||||
return mAttackingOrSpell;
|
return mAttackingOrSpell;
|
||||||
}
|
}
|
||||||
|
@ -216,7 +216,7 @@ namespace MWMechanics
|
||||||
mMagicEffects = effects;
|
mMagicEffects = effects;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreatureStats::setAttackingOrSpell(const bool &attackingOrSpell)
|
void CreatureStats::setAttackingOrSpell(bool attackingOrSpell)
|
||||||
{
|
{
|
||||||
mAttackingOrSpell = attackingOrSpell;
|
mAttackingOrSpell = attackingOrSpell;
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace MWMechanics
|
||||||
|
|
||||||
const MagicEffects & getMagicEffects() const;
|
const MagicEffects & getMagicEffects() const;
|
||||||
|
|
||||||
const bool & getAttackingOrSpell() const;
|
bool getAttackingOrSpell() const;
|
||||||
|
|
||||||
int getLevel() const;
|
int getLevel() const;
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ namespace MWMechanics
|
||||||
|
|
||||||
void setMagicEffects(const MagicEffects &effects);
|
void setMagicEffects(const MagicEffects &effects);
|
||||||
|
|
||||||
void setAttackingOrSpell(const bool &attackingOrSpell);
|
void setAttackingOrSpell(bool attackingOrSpell);
|
||||||
|
|
||||||
enum AttackType
|
enum AttackType
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue