Follow-up Comment #2, bug #21969 (project wesnoth): I did an experiment with removing deleted hot-keys from the hot-keys vector instead of marking them as 'null'. I think there are complications with how the vector is stored in memory, when it is written to the preferences text file, and how hot-keys are detected (command != "null") when reading/writing the hot-keys vector.
...but after all that, I discovered that it's much simpler just to cull the null commands at the save preferences step. I've submitted PR #530 for this - it will be included whenever the sdl2 branch gets merged to master. _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?21969> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Wesnoth-bugs mailing list Wesnoth-bugs@gna.org https://mail.gna.org/listinfo/wesnoth-bugs