Get ready for Json decode.

This commit is contained in:
JoelKatz
2012-10-01 02:19:17 -07:00
parent d37db0219d
commit 98d8823be0
6 changed files with 22 additions and 7 deletions

View File

@@ -75,7 +75,7 @@ SField::ref SField::getField(int type, int value)
std::string SField::getName() const
{
if (fieldName != NULL)
if (!fieldName.empty())
return fieldName;
if (fieldValue == 0)
return "";