Fix logic error in the array type

This commit is contained in:
Martijn Otto 2014-04-14 14:18:51 +02:00
parent cf5def0e89
commit f10e33c7c7
1 changed files with 2 additions and 2 deletions

View File

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