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 | 8a422e34df9e3e80e2be42aad63054c96459f2e9 (patch) | |
tree | ea776ead1303bca953cbbccb0a0e78e08c7eaa45 /src/misc/blob.hpp | |
parent | cc107fe0f9af574305256e39fb41f53a36c546dc (diff) | |
download | openttd-8a422e34df9e3e80e2be42aad63054c96459f2e9.tar.xz |
(svn r12995) -Codechange: use std::vector for EngineList instead of C/C++ wrapper for CBlobT
Diffstat (limited to 'src/misc/blob.hpp')
-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 */ |