Skip to content

Commit

Permalink
Attempt to fix travis mp tests
Browse files Browse the repository at this point in the history
For some unknown reason host lua script starts a sp game after mp game is finished. This commit attempts to fix thiy by giving the lua plugins a second chance to call context.exit()
  • Loading branch information
gfgtdf committed Mar 5, 2016
1 parent c266747 commit 3989199
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wesnoth.cpp
Expand Up @@ -714,6 +714,7 @@ static int do_gameloop(const std::vector<std::string>& args)

handle_lua_script_args(&*game,cmdline_opts);

plugins.play_slice();
plugins.play_slice();

if(cmdline_opts.unit_test) {
Expand Down

0 comments on commit 3989199

Please sign in to comment.