1
0

Hotfixed recipe.txt loading.

This commit is contained in:
Hownaer
2014-08-29 00:42:33 +02:00
parent 4470ebffd7
commit c4d7f7996b
3 changed files with 8 additions and 5 deletions

View File

@@ -119,7 +119,7 @@ bool StringToInteger(const AString& a_str, T& a_Num)
{
for (size_t size = a_str.size(); i < size; i++)
{
if ((a_str[i] <= '0') || (a_str[i] >= '9'))
if ((a_str[i] < '0') || (a_str[i] > '9'))
{
return false;
}
@@ -140,7 +140,7 @@ bool StringToInteger(const AString& a_str, T& a_Num)
{
for (size_t size = a_str.size(); i < size; i++)
{
if ((a_str[i] <= '0') || (a_str[i] >= '9'))
if ((a_str[i] < '0') || (a_str[i] > '9'))
{
return false;
}