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

pull/4/head
Tomasz Sowa 2 years ago
parent 297940ff7c
commit 16f6bdb358

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

Loading…
Cancel
Save