fixed: Space::has_value(...) incorrectly compared strings

This commit is contained in:
Tomasz Sowa 2021-04-14 17:42:57 +02:00
parent 297940ff7c
commit 16f6bdb358
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}
}