summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2007-06-29 22:39:50 +0000
committerKUDr <kudr@openttd.org>2007-06-29 22:39:50 +0000
commit622235d8cd64467923d9d16a6399af0c7870a811 (patch)
tree3e9799faf96fa7d2572253b7f6c7407ccf6516ef
parent91d6051adb8c17c1dd31566c48f4488340091359 (diff)
downloadopenttd-622235d8cd64467923d9d16a6399af0c7870a811.tar.xz
(svn r10390) -Fix: constness
-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;
}
};