summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/recorder/sokoban.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/recorder/sokoban.c b/apps/recorder/sokoban.c
index 061afcb..7511fae 100644
--- a/apps/recorder/sokoban.c
+++ b/apps/recorder/sokoban.c
@@ -691,8 +691,11 @@ static bool sokoban_loop(void)
if (current_info.level.boxes_to_go == 0) {
current_info.level.level++;
- lcd_clear_display();
+ /* clear undo stats */
+ init_undo();
+ lcd_clear_display();
+
if (current_info.level.level == NUM_LEVELS) {
lcd_putsxy(10, 20, str(LANG_SOKOBAN_WIN));