(svn r12740) -Codechange: use a vector instead of allocating memory in a byte array for ChildScreenSpriteToDraw.

This commit is contained in:
rubidium
2008-04-16 20:39:35 +00:00
parent 1eac80f840
commit 34f4150b15
2 changed files with 34 additions and 54 deletions

View File

@@ -49,6 +49,16 @@ template <typename T, uint S> struct SmallVector {
{
return &data[items];
}
const T *Get(size_t index) const
{
return &data[index];
}
T *Get(size_t index)
{
return &data[index];
}
};
#endif /* SMALLVEC_H */