Skip to content

Commit

Permalink
Attempt to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed May 26, 2017
1 parent 4d616fd commit 7d17cd6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/playsingle_controller.cpp
Expand Up @@ -273,8 +273,9 @@ LEVEL_RESULT playsingle_controller::play_scenario(const config& level)
const bool is_victory = get_end_level_data_const().is_victory;

if(gamestate().gamedata_.phase() <= game_data::PRESTART) {
// TODO: does this need an if-not-null check?
gui_->video().get_window()->fill(0, 0, 0, 255);
if(sdl::window* window = gui_->video().get_window()) {
window->fill(0, 0, 0, 255);
}
}

ai_testing::log_game_end();
Expand Down

0 comments on commit 7d17cd6

Please sign in to comment.