Skip to content

Commit

Permalink
VOXELFORMAT: fixed assert on initializing the palette
Browse files Browse the repository at this point in the history
this was triggered on msvc
  • Loading branch information
mgerhardy committed Feb 8, 2020
1 parent 2b97df9 commit 550d287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/voxelformat/VoxFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ bool VoxFormat::loadGroups(const io::FilePtr& file, VoxelVolumes& volumes) {
};

const int paletteSize = lengthof(palette);
_palette.reserve(paletteSize);
_palette.resize(paletteSize);
_paletteSize = paletteSize;
// convert to our palette
const MaterialColorArray& materialColors = getMaterialColors();
Expand Down

0 comments on commit 550d287

Please sign in to comment.