1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: Color vector in 3D visualizer not getting assigned the correct size

This commit is contained in:
WerWolv 2024-04-10 22:53:45 +02:00
parent 9de10df90d
commit 0bd8c5d115

View File

@ -151,7 +151,7 @@ namespace hex::plugin::visualizers {
return std::max(maxx, maxy);
}
void setDefaultColors(std::vector<float> &colors, float size, u32 color) {
void setDefaultColors(std::vector<float> &colors, size_t size, u32 color) {
colors.resize(size / 3 * 4);
float red = float((color >> 0) & 0xFF) / 255.0F;