Skip to content

Commit

Permalink
game_state -> saved_game in test_mp_connect.cpp
Browse files Browse the repository at this point in the history
my local build doesn't include this file so i didn't notice.
  • Loading branch information
gfgtdf committed Jun 11, 2014
1 parent a3a9995 commit c9be48f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tests/test_mp_connect.cpp
Expand Up @@ -21,6 +21,7 @@
#include "multiplayer_connect.hpp"
#include "multiplayer_ui.hpp"
#include "hotkey/hotkey_manager.hpp"
#include "saved_game.hpp"

#include <boost/foreach.hpp>
#include <boost/scoped_ptr.hpp>
Expand All @@ -39,7 +40,7 @@

class test_mp_connect_engine : public mp::connect_engine {
public:
test_mp_connect_engine(game_display& disp, game_state& gamestate,
test_mp_connect_engine(game_display& disp, saved_game& gamestate,
const mp_game_settings& params) :
mp::connect_engine(disp, gamestate, params, true, true)
{}
Expand All @@ -52,7 +53,7 @@ namespace {

boost::scoped_ptr<game_display> disp;
boost::scoped_ptr<mp_game_settings> params;
boost::scoped_ptr<game_state> state;
boost::scoped_ptr<saved_game> state;

}

Expand All @@ -74,7 +75,7 @@ struct mp_connect_fixture {
false));
config_manager->init_game_config(game_config_manager::NO_FORCE_RELOAD);

state.reset(new game_state());
state.reset(new saved_game());
state->classification().campaign_type = game_classification::MULTIPLAYER;
config_manager->load_game_config_for_game(state->classification());

Expand Down

0 comments on commit c9be48f

Please sign in to comment.