We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c72ff3 commit ae60524Copy full SHA for ae60524
source/godmode.c
@@ -989,8 +989,10 @@ u32 GodMode() {
989
ShowPrompt(false, "Not allowed in virtual path");
990
} else if (pad_state & BUTTON_X) { // delete a file
991
u32 n_marked = 0;
992
- for (u32 c = 0; c < current_dir->n_entries; c++)
993
- if (current_dir->entry[c].marked) n_marked++;
+ if (curr_entry->marked) {
+ for (u32 c = 0; c < current_dir->n_entries; c++)
994
+ if (current_dir->entry[c].marked) n_marked++;
995
+ }
996
if (n_marked) {
997
if (ShowPrompt(true, "Delete %u path(s)?", n_marked)) {
998
u32 n_errors = 0;
0 commit comments