mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 18:08:40 +00:00
Made use of unused function preferences::set_custom_command.
This commit is contained in:
parent
0a893b7c75
commit
93eb0baeb1
@ -818,7 +818,7 @@ std::string custom_command() {
|
||||
}
|
||||
|
||||
void set_custom_command(const std::string& command) {
|
||||
return preferences::set("custom_command", command);
|
||||
preferences::set("custom_command", command);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3132,7 +3132,7 @@ void console_handler::do_lua() {
|
||||
game_events::commit();
|
||||
}
|
||||
void console_handler::do_custom() {
|
||||
preferences::set("custom_command", get_data());
|
||||
preferences::set_custom_command(get_data());
|
||||
}
|
||||
void console_handler::do_set_alias() {
|
||||
const std::string data = get_data();
|
||||
|
Loading…
x
Reference in New Issue
Block a user