From 4703eb20368acdebc3481dcb8397bcc0c466da67 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 16 Apr 2008 20:39:35 +0000 Subject: (svn r12740) -Codechange: use a vector instead of allocating memory in a byte array for ChildScreenSpriteToDraw. --- src/misc/smallvec.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/misc') diff --git a/src/misc/smallvec.h b/src/misc/smallvec.h index 29870e1e9..35e90be97 100644 --- a/src/misc/smallvec.h +++ b/src/misc/smallvec.h @@ -49,6 +49,16 @@ template 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 */ -- cgit v1.2.3-54-g00ecf