Attempt to fix tests (fixup 7d9b3f44ad
)
Making the dialog keep a reference meant the tests had a reference to a local variable that was destroyed.
This commit is contained in:
parent
e4f03fe459
commit
ce11f4855e
1 changed files with 1 additions and 1 deletions
|
@ -990,9 +990,9 @@ std::vector<theme_info> dialog_tester<theme_list>::themes {make_theme("classic")
|
|||
template<>
|
||||
struct dialog_tester<editor_generate_map>
|
||||
{
|
||||
std::vector<map_generator*> map_generators;
|
||||
editor_generate_map* create()
|
||||
{
|
||||
std::vector<map_generator*> map_generators;
|
||||
for(const config &i : main_config.child_range("multiplayer")) {
|
||||
if(i["scenario_generation"] == "default") {
|
||||
const config &generator_cfg = i.child("generator");
|
||||
|
|
Loading…
Add table
Reference in a new issue