summaryrefslogtreecommitdiff
path: root/src/misc/array.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/array.hpp')
-rw-r--r--src/misc/array.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc/array.hpp b/src/misc/array.hpp
index 7f8e42329..220082da5 100644
--- a/src/misc/array.hpp
+++ b/src/misc/array.hpp
@@ -64,8 +64,8 @@ public:
/** indexed access (const) */
FORCEINLINE const Titem& operator [] (int idx) const
{
- CSubArray& sa = m_a[idx / Tblock_size];
- Titem& item = sa [idx % Tblock_size];
+ const CSubArray& sa = m_a[idx / Tblock_size];
+ const Titem& item = sa [idx % Tblock_size];
return item;
}
};