diff options
author | rubidium <rubidium@openttd.org> | 2008-04-16 20:01:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-16 20:01:04 +0000 |
commit | 1eac80f840256f52cd482dd4c62fccd362bcfeba (patch) | |
tree | 538d1e127ee956b4bd944fab4cd457b3a8ec2f6f /src/misc | |
parent | 71ebefbbd74e7956ad5cb690b8db240b19dcda26 (diff) | |
download | openttd-1eac80f840256f52cd482dd4c62fccd362bcfeba.tar.xz |
(svn r12739) -Codechange: use a vector instead of allocating memory in a byte array for ParentSpriteToDraw.
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/smallvec.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/misc/smallvec.h b/src/misc/smallvec.h index 952261ae7..29870e1e9 100644 --- a/src/misc/smallvec.h +++ b/src/misc/smallvec.h @@ -35,10 +35,20 @@ template <typename T, uint S> struct SmallVector { return data; } + T *Begin() + { + return data; + } + const T *End() const { return &data[items]; } + + T *End() + { + return &data[items]; + } }; #endif /* SMALLVEC_H */ |