(svn r12740) -Codechange: use a vector instead of allocating memory in a byte array for ChildScreenSpriteToDraw.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user