diff options
Diffstat (limited to 'src/uscxml/messages/Data.h')
-rw-r--r-- | src/uscxml/messages/Data.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uscxml/messages/Data.h b/src/uscxml/messages/Data.h index 818b26e..f4d220f 100644 --- a/src/uscxml/messages/Data.h +++ b/src/uscxml/messages/Data.h @@ -132,8 +132,8 @@ public: } const Data item(const size_t index) const { - if (array.size() < index) { - std::list<Data>::const_iterator arrayIter; + if (array.size() > index) { + std::list<Data>::const_iterator arrayIter = array.begin(); for (int i = 0; i < index; i++, arrayIter++) {} return *arrayIter; } |