Attempt to fix build
This commit is contained in:
parent
4d616fd0f9
commit
7d17cd6dfc
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue