summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-04 12:02:57 +0200
committerMattes D <github@xoft.cz>2014-08-04 12:02:57 +0200
commit7b986e65d2b7d7cad6768599ba4298b62b16c35f (patch)
treedd627e5e467d4bf0f3ed47aa1201b6ab94e9c35a /src/Mobs/Monster.cpp
parentMerge pull request #1283 from Howaner/GlobalFixes (diff)
parentRefactored case-conversion functions. (diff)
downloadcuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.tar
cuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.tar.gz
cuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.tar.bz2
cuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.tar.lz
cuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.tar.xz
cuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.tar.zst
cuberite-7b986e65d2b7d7cad6768599ba4298b62b16c35f.zip
Diffstat (limited to 'src/Mobs/Monster.cpp')
-rw-r--r--src/Mobs/Monster.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index 94df991a3..53334753a 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -710,8 +710,7 @@ AString cMonster::MobTypeToString(cMonster::eType a_MobType)
cMonster::eType cMonster::StringToMobType(const AString & a_Name)
{
- AString lcName(a_Name);
- StrToLower(lcName);
+ AString lcName = StrToLower(a_Name);
// Binary-search for the lowercase name:
int lo = 0, hi = ARRAYCOUNT(g_MobTypeNames) - 1;