fix structures choosing

This commit is contained in:
MihailRis 2024-09-24 18:31:15 +03:00
parent 09e9c570c0
commit dbaea71398
3 changed files with 7 additions and 8 deletions

View file

@ -520,7 +520,6 @@ void ContentLoader::load() {
create_unit_id(pack->id, file.stem().u8string());
auto& def = builder.generators.create(full);
try {
loadGenerator(def, full, name);
} catch (const std::runtime_error& err) {

View file

@ -70,7 +70,7 @@ struct BiomeElementList {
/// @brief Entries sorted by weight descending.
std::vector<WeightedEntry> entries;
/// @brief Sum of weight values
float weightsSum;
float weightsSum = 0.0f;
/// @brief Value generation chance
float chance;