add error message for #7164

This commit is contained in:
gfgtdf 2023-10-23 21:37:11 +02:00 committed by Pentarctagon
parent 3910817cf7
commit 92a0885a97

View File

@ -561,6 +561,10 @@ config play_controller::to_config() const
gui_->labels().write(cfg);
sound::write_music_play_list(cfg);
if(cfg["replay_pos"].to_int(0) > 0 && cfg["playing_team"].empty()) {
gui2::show_error_message(_("Trying to create a corrupt file, please report this bug"));
}
return cfg;
}