diff options
author | KUDr <kudr@openttd.org> | 2007-06-29 22:39:50 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2007-06-29 22:39:50 +0000 |
commit | 622235d8cd64467923d9d16a6399af0c7870a811 (patch) | |
tree | 3e9799faf96fa7d2572253b7f6c7407ccf6516ef /src/misc | |
parent | 91d6051adb8c17c1dd31566c48f4488340091359 (diff) | |
download | openttd-622235d8cd64467923d9d16a6399af0c7870a811.tar.xz |
(svn r10390) -Fix: constness
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/array.hpp | 4 |
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; } }; |