summaryrefslogtreecommitdiff
path: root/src/common/dumb_ptr.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-05-18 21:55:09 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-05-18 21:55:09 -0700
commit69a36c1092c772f05badbab400888712129072ba (patch)
treea2c8ecf8216860c10acb2cb64af4d0660df2c4c3 /src/common/dumb_ptr.hpp
parentac359e696f162090840dab488a6ef4981d35bbda (diff)
downloadtmwa-69a36c1092c772f05badbab400888712129072ba.tar.gz
tmwa-69a36c1092c772f05badbab400888712129072ba.tar.bz2
tmwa-69a36c1092c772f05badbab400888712129072ba.tar.xz
tmwa-69a36c1092c772f05badbab400888712129072ba.zip
Fix silly bugs in the previous patch
Diffstat (limited to 'src/common/dumb_ptr.hpp')
-rw-r--r--src/common/dumb_ptr.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/dumb_ptr.hpp b/src/common/dumb_ptr.hpp
index 91293c6..9321036 100644
--- a/src/common/dumb_ptr.hpp
+++ b/src/common/dumb_ptr.hpp
@@ -98,6 +98,7 @@ public:
void new_(size_t z)
{
impl = new T[z]();
+ sz = z;
}
static
dumb_ptr<T[]> make(size_t z)