Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Dec 18, 2024
1 parent d5ab6e7 commit 87ed055
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/PalettedBlockArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,7 @@ class PalettedBlockArray final : public IPalettedBlockArray<Block> {
template<typename BlockArray>
void _fastUpsize(const BlockArray& otherArray) {
auto otherPalette = otherArray.getPalette();

palette.~Palette();
new (&palette) Palette(otherPalette);
this->palette = Palette(otherPalette);

for (Coord x = 0; x < Base::ARRAY_DIM; ++x) {
for (Coord z = 0; z < Base::ARRAY_DIM; ++z) {
Expand Down

0 comments on commit 87ed055

Please sign in to comment.