summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-07 18:31:29 +0000
committersmatz <smatz@openttd.org>2008-05-07 18:31:29 +0000
commit3445b8054c81e12dc0d0078135a73eafe10a309f (patch)
treeea776ead1303bca953cbbccb0a0e78e08c7eaa45 /src/misc
parent220bc49731e8f32cf92f31defab1bd5e313f7dc7 (diff)
downloadopenttd-3445b8054c81e12dc0d0078135a73eafe10a309f.tar.xz
(svn r12995) -Codechange: use std::vector for EngineList instead of C/C++ wrapper for CBlobT
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/blob.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/misc/blob.hpp b/src/misc/blob.hpp
index 441c8a027..c96902997 100644
--- a/src/misc/blob.hpp
+++ b/src/misc/blob.hpp
@@ -373,7 +373,7 @@ public:
}
/** Check the validity of item index (only in debug mode) */
- FORCEINLINE void CheckIdx(bsize_t idx)
+ FORCEINLINE void CheckIdx(bsize_t idx) const
{
assert(idx >= 0); assert(idx < Size());
}
@@ -400,7 +400,8 @@ public:
/** Return pointer to the idx-th data item - const version */
FORCEINLINE const Titem* Data(bsize_t idx) const
{
- CheckIdx(idx); return (Data() + idx);
+ CheckIdx(idx);
+ return (Data() + idx);
}
/** Return number of items in the Blob */