Skip to content

Commit deaf720

Browse files
committed
Fix [resistance_defaults] leaking on random maps, causing OOS
Credit to gfgtdf for the solution. Fixes wesnoth#10010
1 parent 4309bed commit deaf720

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/game_initialization/create_engine.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ void create_engine::prepare_for_other()
489489
state_.set_scenario(current_level().data());
490490
state_.mp_settings().hash = current_level().data().hash();
491491
state_.check_require_scenario();
492+
game_config_manager::get()->load_game_config_for_game(state_.classification(), state_.get_scenario_id());
492493
}
493494

494495
void create_engine::apply_level_filter(const std::string& name)

0 commit comments

Comments
 (0)