small fix

This commit is contained in:
Robin Müller 2022-04-11 17:14:43 +02:00
parent cb78fefbb3
commit a1d7a56dfa
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -10,7 +10,7 @@ class HybridIterator : public LinkedElement<T>::Iterator, public ArrayList<T, co
HybridIterator() {}
HybridIterator(typename LinkedElement<T>::Iterator *iter)
: LinkedElement<T>::Iterator(*iter), value(iter->value), linked(true) {
: LinkedElement<T>::Iterator(*iter), linked(true) {
if (iter != nullptr) {
value = iter->value;
}