summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Pawn.cpp4
-rw-r--r--src/Entities/Pawn.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Entities/Pawn.cpp b/src/Entities/Pawn.cpp
index b872cdfac..550d86e35 100644
--- a/src/Entities/Pawn.cpp
+++ b/src/Entities/Pawn.cpp
@@ -470,7 +470,7 @@ void cPawn::StopEveryoneFromTargetingMe()
-std::map<cEntityEffect::eType, cEntityEffect *> cPawn::GetEntityEffects()
+std::map<cEntityEffect::eType, cEntityEffect *> cPawn::GetEntityEffects() const
{
std::map<cEntityEffect::eType, cEntityEffect *> Effects;
for (auto & Effect : m_EntityEffects)
@@ -484,7 +484,7 @@ std::map<cEntityEffect::eType, cEntityEffect *> cPawn::GetEntityEffects()
-cEntityEffect * cPawn::GetEntityEffect(cEntityEffect::eType a_EffectType)
+cEntityEffect * cPawn::GetEntityEffect(cEntityEffect::eType a_EffectType) const
{
auto itr = m_EntityEffects.find(a_EffectType);
return (itr != m_EntityEffects.end()) ? itr->second.get() : nullptr;
diff --git a/src/Entities/Pawn.h b/src/Entities/Pawn.h
index f68db63e9..f4b1cbbbf 100644
--- a/src/Entities/Pawn.h
+++ b/src/Entities/Pawn.h
@@ -66,10 +66,10 @@ public:
void TargetingMe(cMonster * a_Monster);
/** Returns all entity effects */
- std::map<cEntityEffect::eType, cEntityEffect *> GetEntityEffects();
+ std::map<cEntityEffect::eType, cEntityEffect *> GetEntityEffects() const;
/** Returns the entity effect, if it is currently applied or nullptr if not. */
- cEntityEffect * GetEntityEffect(cEntityEffect::eType a_EffectType);
+ cEntityEffect * GetEntityEffect(cEntityEffect::eType a_EffectType) const;
protected:
typedef std::map<cEntityEffect::eType, std::unique_ptr<cEntityEffect>> tEffectMap;