fix structures choosing
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user