summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-16 20:01:04 +0000
committerrubidium <rubidium@openttd.org>2008-04-16 20:01:04 +0000
commit1eac80f840256f52cd482dd4c62fccd362bcfeba (patch)
tree538d1e127ee956b4bd944fab4cd457b3a8ec2f6f /src/misc
parent71ebefbbd74e7956ad5cb690b8db240b19dcda26 (diff)
downloadopenttd-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.h10
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 */