diff options
author | smatz <smatz@openttd.org> | 2008-05-07 18:31:29 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-05-07 18:31:29 +0000 |
commit | 3445b8054c81e12dc0d0078135a73eafe10a309f (patch) | |
tree | ea776ead1303bca953cbbccb0a0e78e08c7eaa45 /src/misc | |
parent | 220bc49731e8f32cf92f31defab1bd5e313f7dc7 (diff) | |
download | openttd-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.hpp | 5 |
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 */ |