diff options
Diffstat (limited to 'common/list.h')
-rw-r--r-- | common/list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/list.h b/common/list.h index 03d6076635..d49a6bf0bc 100644 --- a/common/list.h +++ b/common/list.h @@ -66,7 +66,7 @@ public: } // Postfix inc Iterator<T2> operator++(int) { - Iterator<T2> tmp(*this); + Iterator<T2> tmp(_node); if (_node) _node = _node->_next; return tmp; @@ -79,7 +79,7 @@ public: } // Postfix dec Iterator<T2> operator--(int) { - Iterator<T2> tmp(*this); + Iterator<T2> tmp(_node); if (_node) _node = _node->_prev; return tmp; |