Fix logic error in the array type
This commit is contained in:
parent
cf5def0e89
commit
f10e33c7c7
|
|
@ -87,7 +87,7 @@ public:
|
|||
auto ptr = std::shared_ptr<Field>(value.clone());
|
||||
|
||||
// should we overwrite an existing record?
|
||||
if (index <= _fields.size())
|
||||
if (index >= _fields.size())
|
||||
{
|
||||
// append index
|
||||
_fields.push_back(ptr);
|
||||
|
|
|
|||
Loading…
Reference in New Issue