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