fixed: Space::has_value(...) incorrectly compared strings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user