diff options
author | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-04-24 15:19:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-24 15:19:57 +0200 |
commit | 888389c28d5f3ad06154e4d2e36de568b6f7966e (patch) | |
tree | b4b342d27ef45202fed571440846e5581a143edf /src/music | |
parent | d0e40ab31487cdf59c2fb638bcf553f166f8faf1 (diff) | |
download | openttd-888389c28d5f3ad06154e4d2e36de568b6f7966e.tar.xz |
Codechange: Use std::string in console commands/aliases registration, and std::map instead our sorted linked list (#9057)
* Codechange: Use std::string in console commands and aliases registration
* Codechange: Use std::map to register console commands
* Codechange: Use std::map to register console aliases
* Cleanup: Remove now unused function
Diffstat (limited to 'src/music')
-rw-r--r-- | src/music/midifile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/music/midifile.cpp b/src/music/midifile.cpp index 4bdd3e4e3..dcd2cefd8 100644 --- a/src/music/midifile.cpp +++ b/src/music/midifile.cpp @@ -1142,7 +1142,7 @@ static void RegisterConsoleMidiCommands() { static bool registered = false; if (!registered) { - IConsoleCmdRegister("dumpsmf", CmdDumpSMF); + IConsole::CmdRegister("dumpsmf", CmdDumpSMF); registered = true; } } |