raiguard / TrainGroups

A Factorio mod that eases the process of configuring train schedules.
MIT License
5 stars 0 forks source link

Soft Crash on creating new group on train with temporary stop #21

Closed Vuanaunt closed 11 months ago

Vuanaunt commented 1 year ago

Description

The mod Train Groups (1.4.2) caused a non-recoverable error. Please report this error to the mod author.

Error while running event TrainGroups::on_gui_click (ID 1) Index out of bounds. stack traceback: [C]: in function 'newindex' TrainGroups/scripts/groups.lua:125: in function 'change_train_group' TrainGroups/scripts/groups.lua:151: in function 'add_train' TrainGroups/scripts/change-group-gui.lua:59: in function 'select_group' TrainGroups/scripts/change-group-gui.lua:104: in function 'handler' TrainGroups/scripts/change-group-gui.lua:349: in function 'wrapper' flib/gui-lite.lua:139: in function 'handler' flib/gui-lite.lua:169: in function 'handler' core__/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>

Reproduction

1) Place a new train. 2) Assign it a temporary train stop. 3) Create a new train group before the temporary stop is automatically removed.