1
0

Replaced atoi() with StringToInteger().

This commit is contained in:
Mattes D
2015-01-25 16:25:15 +01:00
parent f243aa387c
commit 6ec5e8caa7
5 changed files with 11 additions and 9 deletions

View File

@@ -205,8 +205,7 @@ void cBiomeGenList::InitializeBiomes(const AString & a_Biomes)
int Count = 1;
if (Split2.size() >= 2)
{
Count = atol(Split2[1].c_str());
if (Count <= 0)
if (!StringToInteger(Split2[1], Count))
{
LOGWARNING("Cannot decode biome count: \"%s\"; using 1.", Split2[1].c_str());
Count = 1;