Follow-up Comment #3, bug #20251 (project wesnoth):
The hotkey definitions aren't being saved. There is an inverted null check in
the save() method.
svn diff src/hotkeys.cpp
Index: src/hotkeys.cpp
===================================================================
--- src/hotkeys.cpp (revision 55567)
+++ src/hotkeys.cpp (working copy)
@@ -569,12 +565,10 @@
for(std::vector<hotkey_item>::iterator i = hotkeys_.begin();
i != hotkeys_.end(); ++i)
{
- if (i->get_command() != "null") {
+ if (i->null()) {
continue;
}
config& item = cfg.add_child("hotkey");
i->save(item);
}
}
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?20251>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs