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
commit5254131d9c9178e1afb708cec13f6fa0350fdde7 (patch)
tree538d1e127ee956b4bd944fab4cd457b3a8ec2f6f /src/misc
parent1f22f47b3badf4828da015fcaada69b17edc42f6 (diff)
downloadopenttd-5254131d9c9178e1afb708cec13f6fa0350fdde7.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 */