Qt-client shortcuts.cpp has a "static int num_shortcuts = 57;" which is used at least to tell number of shortcuts to save and load. The value currently isn't same as highest value in 'enum shortcut_id' (nor +1 for considering the value 0) - I'm not yet entirely sure if it should. But I'm sure that it should have been increased when the new shortcut (for toggling Unit Stack Size) was last added, and it was not. So it's certainly wrong, have to just determine how much.
Fix for #44407 should go in before this - once we save those shortcuts in the end of the array, we don't want to save (so that they may remain in use forever) a wrong one.
Qt-client shortcuts.cpp has a "static int num_shortcuts = 57;" which is used at least to tell number of shortcuts to save and load. The value currently isn't same as highest value in 'enum shortcut_id' (nor +1 for considering the value 0) - I'm not yet entirely sure if it should. But I'm sure that it should have been increased when the new shortcut (for toggling Unit Stack Size) was last added, and it was not. So it's certainly wrong, have to just determine how much.