We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5ab6e7 commit 87ed055Copy full SHA for 87ed055
lib/PalettedBlockArray.h
@@ -333,9 +333,7 @@ class PalettedBlockArray final : public IPalettedBlockArray<Block> {
333
template<typename BlockArray>
334
void _fastUpsize(const BlockArray& otherArray) {
335
auto otherPalette = otherArray.getPalette();
336
-
337
- palette.~Palette();
338
- new (&palette) Palette(otherPalette);
+ this->palette = Palette(otherPalette);
339
340
for (Coord x = 0; x < Base::ARRAY_DIM; ++x) {
341
for (Coord z = 0; z < Base::ARRAY_DIM; ++z) {
0 commit comments