From d1d045a70e55ac6c645f4dad3032060868271ed7 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 16 Nov 2025 10:56:39 -0800 Subject: [PATCH] fix rare enemy rate inheritance; closes #719 --- src/ServerState.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServerState.cc b/src/ServerState.cc index 11a3c253..ca89cd97 100644 --- a/src/ServerState.cc +++ b/src/ServerState.cc @@ -1280,9 +1280,9 @@ void ServerState::load_config_early() { } catch (const out_of_range&) { } + shared_ptr prev = MapState::DEFAULT_RARE_ENEMIES; for (Difficulty difficulty : ALL_DIFFICULTIES_V234) { size_t diff_index = static_cast(difficulty); - shared_ptr prev = MapState::DEFAULT_RARE_ENEMIES; try { string key = "RareEnemyRates-"; key += token_name_for_difficulty(difficulty);