diff --git a/space/space.cpp b/space/space.cpp index c1611a9..4db4f1d 100644 --- a/space/space.cpp +++ b/space/space.cpp @@ -1343,7 +1343,8 @@ bool Space::has_value(const char * val) const if( table_item->type == type_string ) { - return table_item->value.value_string == val; + if( table_item->value.value_string == val ) + return true; } } } @@ -1372,7 +1373,8 @@ bool Space::has_value(const wchar_t * val) const if( table_item->type == type_wstring ) { - return table_item->value.value_wstring == val; + if( table_item->value.value_wstring == val ) + return true; } } }