diff options
author | Max Horn | 2005-06-25 19:43:59 +0000 |
---|---|---|
committer | Max Horn | 2005-06-25 19:43:59 +0000 |
commit | 5059e710e82c7a5bca60914206487767714d0b10 (patch) | |
tree | 6677ba78c5b1d1d020758ae608f88aaeaac3fae5 | |
parent | e68a6ddd2615ddc42eb18bf3458607f6d108f79f (diff) | |
download | scummvm-rg350-5059e710e82c7a5bca60914206487767714d0b10.tar.gz scummvm-rg350-5059e710e82c7a5bca60914206487767714d0b10.tar.bz2 scummvm-rg350-5059e710e82c7a5bca60914206487767714d0b10.zip |
Fix postfix inc/decrement operators of List::Iterator
svn-id: r18465
-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; |