Skip to content

Commit

Permalink
init all members of unknownBiome (#365)
Browse files Browse the repository at this point in the history
the colors member variable was not initialized and therefore may contain random content
  • Loading branch information
EtlamGit authored Jul 30, 2023
1 parent 502e55f commit e5e0044
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions identifier/biomeidentifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ QColor BiomeInfo::getBiomeWaterColor( QColor watercolor ) const
BiomeIdentifier::BiomeIdentifier() {
unknownBiome.watermodifier.setNamedColor("#3f76e4");
unknownBiome.enabledwatermodifier = true;
for (int c = 0; c < 16; c++)
unknownBiome.colors[c] = QColor(0,0,0);
}

BiomeIdentifier::~BiomeIdentifier() {
Expand Down

0 comments on commit e5e0044

Please sign in to comment.