Fixed BlockStringToType return value.

-1 was not a valid BLOCKTYPE and would not be recognized by the callers, ever.
This commit is contained in:
Mattes D committed 2014-11-27 21:19:52 +01:00
1 parent a971dee379
commit e3e13f552f
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -200,7 +200,7 @@ public:
BLOCKTYPE BlockStringToType(const AString & a_BlockTypeString)
int BlockStringToType(const AString & a_BlockTypeString)
{
int res = atoi(a_BlockTypeString.c_str());
if ((res != 0) || (a_BlockTypeString.compare("0") == 0))