diff --git a/uppsrc/Core/Vcont.h b/uppsrc/Core/Vcont.h index de0c20a6e..909a48727 100644 --- a/uppsrc/Core/Vcont.h +++ b/uppsrc/Core/Vcont.h @@ -93,7 +93,7 @@ public: Buffer(Buffer&& v) { ptr = v.ptr; v.ptr = NULL; } Buffer(size_t size, std::initializer_list init) { - T *t = Malloc(size); for(const auto& i : init) new (t++) T(i); + Malloc(size); T *t = ptr; for(const auto& i : init) new (t++) T(i); } Buffer(std::initializer_list init) : Buffer(init.size(), init) {} };