fix rare enemy rate inheritance; closes #719
This commit is contained in:
+1
-1
@@ -1280,9 +1280,9 @@ void ServerState::load_config_early() {
|
|||||||
} catch (const out_of_range&) {
|
} catch (const out_of_range&) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shared_ptr<const MapState::RareEnemyRates> prev = MapState::DEFAULT_RARE_ENEMIES;
|
||||||
for (Difficulty difficulty : ALL_DIFFICULTIES_V234) {
|
for (Difficulty difficulty : ALL_DIFFICULTIES_V234) {
|
||||||
size_t diff_index = static_cast<size_t>(difficulty);
|
size_t diff_index = static_cast<size_t>(difficulty);
|
||||||
shared_ptr<const MapState::RareEnemyRates> prev = MapState::DEFAULT_RARE_ENEMIES;
|
|
||||||
try {
|
try {
|
||||||
string key = "RareEnemyRates-";
|
string key = "RareEnemyRates-";
|
||||||
key += token_name_for_difficulty(difficulty);
|
key += token_name_for_difficulty(difficulty);
|
||||||
|
|||||||
Reference in New Issue
Block a user