summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/beinginfo.cpp9
-rw-r--r--src/resources/beinginfo.h10
2 files changed, 13 insertions, 6 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp
index 8b76d7e2a..d7ecb8136 100644
--- a/src/resources/beinginfo.cpp
+++ b/src/resources/beinginfo.cpp
@@ -155,9 +155,12 @@ const Attack *BeingInfo::getAttack(const int id) const
return (i == mAttacks.end()) ? empty : (*i).second;
}
-void BeingInfo::addAttack(const int id, std::string action,
- std::string skyAction, std::string waterAction,
- const int effectId, const int hitEffectId,
+void BeingInfo::addAttack(const int id,
+ const std::string &action,
+ const std::string &skyAction,
+ const std::string &waterAction,
+ const int effectId,
+ const int hitEffectId,
const int criticalHitEffectId,
const int missEffectId,
const std::string &missileParticle)
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h
index 31725d218..81a1f749d 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -117,9 +117,13 @@ class BeingInfo final
const SoundInfo &getSound(const ItemSoundEvent event)
const A_WARN_UNUSED;
- void addAttack(const int id, std::string action, std::string skyAttack,
- std::string waterAttack, const int effectId,
- const int hitEffectId, const int criticalHitEffectId,
+ void addAttack(const int id,
+ const std::string &action,
+ const std::string &skyAttack,
+ const std::string &waterAttack,
+ const int effectId,
+ const int hitEffectId,
+ const int criticalHitEffectId,
const int missEffectId,
const std::string &missileParticle);