Mob::ProcessSpecialAbilities pass by reference

This commit is contained in:
Michael Cook (mackal) 2014-09-15 20:31:45 -04:00
parent ec0989454d
commit 11ce399e0d
2 changed files with 2 additions and 2 deletions

View File

@ -4924,7 +4924,7 @@ void Mob::ClearSpecialAbilities() {
}
}
void Mob::ProcessSpecialAbilities(const std::string str) {
void Mob::ProcessSpecialAbilities(const std::string &str) {
ClearSpecialAbilities();
std::vector<std::string> sp = SplitString(str, '^');

View File

@ -843,7 +843,7 @@ public:
void StopSpecialAbilityTimer(int ability);
Timer *GetSpecialAbilityTimer(int ability);
void ClearSpecialAbilities();
void ProcessSpecialAbilities(const std::string str);
void ProcessSpecialAbilities(const std::string &str);
Shielders_Struct shielder[MAX_SHIELDERS];
Trade* trade;