1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-17 22:25:12 +00:00

ads:: clear displayed to prevent crashes

This commit is contained in:
Zeno Rogue
2024-09-17 17:57:38 +02:00
parent cb89e8f1cb
commit 8770caaa00
2 changed files with 4 additions and 0 deletions

View File

@@ -708,6 +708,7 @@ void ds_restart() {
rocks.clear();
history.clear();
displayed.clear();
init_ds_game();
reset_textures();
pick_textures();
@@ -739,6 +740,7 @@ void run_ds_game() {
void add_ds_cleanup() {
rogueviz::on_cleanup_or_next([] {
main_rock = nullptr;
displayed.clear();
});
}