Skip to content

Commit

Permalink
fix used key (id of Biome)
Browse files Browse the repository at this point in the history
  • Loading branch information
EtlamGit committed Aug 31, 2019
1 parent 8c7fc41 commit f13e9f7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions biomeidentifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,10 @@ void BiomeIdentifier::updateBiomeDefinition()
biomes.clear();

for (int pack = 0; pack < packs.length(); pack++)
for (int id = 0; id < packs[pack].length(); id++)
if (packs[pack][id]->enabled) {
biomes[id] = packs[pack][id];
for (int i = 0; i < packs[pack].length(); i++) {
BiomeInfo *bi = packs[pack][i];
if (bi->enabled) {
biomes[bi->id] = bi;
}
}
}

0 comments on commit f13e9f7

Please sign in to comment.