diff options
Diffstat (limited to 'Utilities/std/cmext')
-rw-r--r-- | Utilities/std/cmext/enum_set | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Utilities/std/cmext/enum_set b/Utilities/std/cmext/enum_set index f97a04c..4225b82 100644 --- a/Utilities/std/cmext/enum_set +++ b/Utilities/std/cmext/enum_set @@ -58,7 +58,11 @@ public: enum_set_iterator& operator--() { - while (--this->Index >= 0 && !this->Set->test(this->Index)) + if (this->Index == 0) { + return *this; + } + + while (!this->Set->test(--this->Index) && this->Index != 0) ; return *this; |