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:
Charles Dang 2017-05-04 13:11:19 +11:00
parent e4f03fe459
commit ce11f4855e

View file

@ -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");