فهرست منبع

Fixed bug that does not allow adding new stages after deleting the last one from the list

tcpassos 2 سال پیش
والد
کامیت
0ebe7a8a5e
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      applications/external/wifi_marauder_companion/scenes/wifi_marauder_scene_script_stage_edit.c

+ 2 - 0
applications/external/wifi_marauder_companion/scenes/wifi_marauder_scene_script_stage_edit.c

@@ -116,12 +116,14 @@ static void wifi_marauder_scene_script_stage_edit_list_enter_callback(void* cont
                     previous_stage->next_stage = current_stage->next_stage;
                 } else {
                     previous_stage->next_stage = NULL;
+                    app->script->last_stage = previous_stage;
                 }
             } else {
                 if (current_stage->next_stage != NULL) {
                     app->script->first_stage = current_stage->next_stage;
                 } else {
                     app->script->first_stage = NULL;
+                    app->script->last_stage = NULL;
                 }
             }
         }