Game Display: check for teams before refreshing reports (fixes #9609)
Regression from 7fa4fe483c
This commit is contained in:
parent
2c216eec72
commit
4ccfca6b1d
1 changed files with 5 additions and 0 deletions
|
@ -338,6 +338,11 @@ void game_display::layout()
|
|||
{
|
||||
display::layout();
|
||||
|
||||
// We need teams for the reports below
|
||||
if(context().teams().empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
refresh_report("report_clock");
|
||||
refresh_report("report_battery");
|
||||
refresh_report("report_countdown");
|
||||
|
|
Loading…
Add table
Reference in a new issue