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 | 297248c83f47b533ef39c36f5206be63ccdd9c82 (patch) | |
tree | 3e9799faf96fa7d2572253b7f6c7407ccf6516ef /src | |
parent | 65ba91d1c98b59dbe7c1df173b0938d5b0df2668 (diff) | |
download | openttd-297248c83f47b533ef39c36f5206be63ccdd9c82.tar.xz |
(svn r10390) -Fix: constness
Diffstat (limited to 'src')
-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; } }; |