mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r10390) -Fix: constness
This commit is contained in:
parent
65ba91d1c9
commit
297248c83f
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user