diff options
author | madmaxoft <github@xoft.cz> | 2014-08-04 11:16:19 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-08-04 11:30:20 +0200 |
commit | 1fa210c7f91030ac18fd880fcf131e8104c0b889 (patch) | |
tree | 6d63d6572c053b9474d7c2d6c412d9bb0a516ac5 /src/Mobs | |
parent | Anvil: Wolf owner not saved if not present. (diff) | |
download | cuberite-1fa210c7f91030ac18fd880fcf131e8104c0b889.tar cuberite-1fa210c7f91030ac18fd880fcf131e8104c0b889.tar.gz cuberite-1fa210c7f91030ac18fd880fcf131e8104c0b889.tar.bz2 cuberite-1fa210c7f91030ac18fd880fcf131e8104c0b889.tar.lz cuberite-1fa210c7f91030ac18fd880fcf131e8104c0b889.tar.xz cuberite-1fa210c7f91030ac18fd880fcf131e8104c0b889.tar.zst cuberite-1fa210c7f91030ac18fd880fcf131e8104c0b889.zip |
Diffstat (limited to 'src/Mobs')
-rw-r--r-- | src/Mobs/Monster.cpp | 3 |
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; |