diff --git a/src/lol/base/array.h b/src/lol/base/array.h index d30b9f72..b60f066b 100644 --- a/src/lol/base/array.h +++ b/src/lol/base/array.h @@ -162,10 +162,12 @@ public: *this << x; } - inline void Pop() + inline T Pop() { ASSERT(m_count > 0); + Element tmp = Last(); Remove(m_count - 1, 1); + return tmp; } void Swap(int pos1, int pos2)