aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/container.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/container.h b/src/util/container.h
index fdd76cc59..e83c3cd37 100644
--- a/src/util/container.h
+++ b/src/util/container.h
@@ -297,7 +297,8 @@ public:
if(!m_list.empty())
{
- typename std::list<T>::iterator last = m_list.back();
+ typename std::list<T>::iterator last = m_list.end();
+ last--;
T t = *last;
m_list.erase(last);
return t;