From ae6f66e8832a3c6b98571727b96163c161357528 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 8 Dec 2014 08:05:33 +0000 Subject: [PATCH] base: fix an old bug affecting range-based for loops on arrays. --- src/lol/base/array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lol/base/array.h b/src/lol/base/array.h index db76941a..8c325a9d 100644 --- a/src/lol/base/array.h +++ b/src/lol/base/array.h @@ -415,7 +415,7 @@ public: return m_pos != that.m_pos; } - element_t operator *() + element_t & operator *() { return (*m_array)[m_pos]; }