1
0

Fixed Compile errors

c++11 introduces scoped enums, so the code didn't fail in clang
This commit is contained in:
Tycho
2014-02-03 13:01:12 -08:00
parent f8881622a4
commit d9fb83300c
4 changed files with 7 additions and 7 deletions

View File

@@ -13,11 +13,11 @@ EMCSBiome StringToBiome(const AString & a_BiomeString)
int res = atoi(a_BiomeString.c_str());
if ((res != 0) || (a_BiomeString.compare("0") == 0))
{
if(res >= biFirstBiome && res < biNumBiomes)
if ((res >= biFirstBiome) && (res < biNumBiomes))
{
return (EMCSBiome)res;
}
else if(res >= biFirstVarientBiome && res < biNumVarientBiomes)
else if ((res >= biFirstVariantBiome) && (res < biNumVariantBiomes))
{
return (EMCSBiome)res;
}