Initialize NearestParameters correctly
This commit is contained in:
parent
b1d70b8a8c
commit
84d79f789c
@ -12,7 +12,7 @@ namespace api
|
||||
|
||||
struct NearestParameters : public BaseParameters
|
||||
{
|
||||
unsigned number_of_results;
|
||||
unsigned number_of_results = 1;
|
||||
|
||||
bool IsValid() const { return BaseParameters::IsValid() && number_of_results >= 1; }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user