1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 09:59:10 +00:00

(svn r10390) -Fix: constness

This commit is contained in:
KUDr
2007-06-29 22:39:50 +00:00
parent 91d6051adb
commit 622235d8cd

View File

@@ -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;
}
};