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

This commit is contained in:
rubidium
2008-04-16 20:01:04 +00:00
parent 1f22f47b3b
commit 5254131d9c
2 changed files with 57 additions and 59 deletions

View File

@@ -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 */