Attempt to fix build

This commit is contained in:
Charles Dang 2017-05-26 18:11:57 +11:00
parent 4d616fd0f9
commit 7d17cd6dfc

View file

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